saveState
Save the current state of the running game.
Usage
const nostalgist = await Nostalgist.nes('flappybird.nes')
// Save the stateconst { state } = await nostalgist.saveState()
// Load the stateawait nostalgist.loadState(state)
Returns
-
state
type:
{ state: Blob, thumbnail: Blob | undefined }
The state of the current running game.
If RetroArch is launched with
savestate_thumbnail_enable
set totrue
(which is the default in Nostalgist.js), thenthumbnail
will be aBlob
. Otherwise,thumbnail
will beundefined
.