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