saveState
Save the state of the current 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 the option
savestate_thumbnail_enable
set totrue
, which is the default value inside Nostalgist.js, then thethumbnail
will be aBlob
. Otherwise thethumbnail
will beundefined
.