-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for saving and importing SRAM
- Loading branch information
1 parent
8d12600
commit e9a6bef
Showing
82 changed files
with
426 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: saveSRAM | ||
--- | ||
|
||
Save the SRAM of the current running game. | ||
|
||
## Since | ||
`0.12.0` | ||
|
||
## Usage | ||
```js | ||
const nostalgist = await Nostalgist.nes('zelda.nes') | ||
|
||
// save the SRAM | ||
const sram = await nostalgist.saveSRAM() | ||
|
||
// launch with the SRAM | ||
await nostalgist.nes({ | ||
rom: 'zelda.nes', | ||
sram, | ||
}) | ||
``` | ||
|
||
## Returns | ||
+ ### `state` | ||
|
||
**type:** `Blob` | ||
|
||
The SRAM of the current running game. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
import { createConfig } from '@arianrhodsandlot/eslint-config' | ||
|
||
export default createConfig({ | ||
rules: { | ||
'sonarjs/no-empty-test-file': 'off', | ||
}, | ||
}) | ||
export { default } from '@arianrhodsandlot/eslint-config' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.