The Snapshot API
For advanced users and those creating standalone patchers, Snapshots can be accessed via the Snapshots API. These can be used in Javascript with the js object.
Snapshot Methods
snapshot
Arguments
index [Number] (optional)
name [String] (optional)
Take a snapshot at the current index.
restore
Arguments
Restore a snapshot at the given index.
addsnapshot
Arguments
index [Number] (optional)
name [String] (optional)
Append (no arguments) or add a snapshot at the given index.
deletesnapshot
Arguments
Delete a snapshot at the given index.
getnumsnapshots
Get the total number of snapshots.
getsnapshotname
Arguments
Get the name of the snapshot at the given index.
setsnapshotname
Arguments
name [String]
Set the name of the snapshot at the given index.
getembedsnapshot
Arguments
Query the 'embed' state of a snapshot. Returns 1 if the snapshot at the index is embedded, 0 if not.
setembedsnapshot
Arguments
embedstate [Number]
Set the embed state of the snapshot at the index.
movesnapshot
Arguments
dstindex [Number]
Change a snapshot's index.
exportsnapshot
Arguments
userpath [String] (optional)
Save a snapshot to a given file.
importsnapshot
Arguments
userpath [String] (optional)
Load a snapshot from a file into a given slot.
Snapshot API Example
See Also
Name | Description |
---|---|
JavaScript Usage | JavaScript Usage |