-
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.
- Loading branch information
1 parent
5630fc3
commit 20b3384
Showing
5 changed files
with
126 additions
and
81 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
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,18 @@ | ||
--- | ||
title: getEmscriptenFS | ||
--- | ||
|
||
Get the Emscripten `AL` object of the current running emulator. | ||
|
||
See [FS object](https://emscripten.org/docs/api_reference/Filesystem-API.html#id2) for more information. | ||
|
||
## Since | ||
`0.10.0` | ||
|
||
## Usage | ||
```js | ||
const nostalgist = await Nostalgist.nes('flappybird.nes') | ||
|
||
const AL = nostalgist.getEmscriptenAL() | ||
FS.readdir('/') | ||
``` |
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,15 @@ | ||
--- | ||
title: getEmscriptenFS | ||
--- | ||
|
||
Get the Emscripten object of the current running emulator. | ||
|
||
## Since | ||
`0.10.0` | ||
|
||
## Usage | ||
```js | ||
const nostalgist = await Nostalgist.nes('flappybird.nes') | ||
|
||
const { AL, Browser, exit, JSEvents, Module } = nostalgist.getEmscripten() | ||
``` |
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