Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
arianrhodsandlot committed Oct 17, 2023
1 parent aa55bf6 commit 6b54387
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/src/content/docs/apis/launch.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const nostalgist = await Nostalgist.launch({
}

// Specify where to load the core files
resolveCoreJs({ core }) {
resolveCoreJs(core) {
return `https://example.com/core/${core}_libretro.js`
},
resolveCoreWasm({ core }) {
resolveCoreWasm(core) {
return `https://example.com/core/${core}_libretro.wasm`
},

Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ await Nostalgist.nes('flappybird.nes')
const rom = 'https://example.com/zelda.sfc'
const nostalgist = await Nostalgist.snes(rom)
const FS = nostalgist.getEmscriptenFS()
FS.readdir('/home/web_user/retroarch/userdata/saves/Snes9x/zelda.srm')
FS.readFile('/home/web_user/retroarch/userdata/saves/Snes9x/zelda.srm')
```
</div>

Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Checkout [nostalgist.js.org](https://nostalgist.js.org/) for more online example
const rom = 'https://example.com/zelda.sfc'
const nostalgist = await Nostalgist.snes(rom)
const FS = nostalgist.getEmscriptenFS()
FS.readdir('/home/web_user/retroarch/userdata/saves/Snes9x/zelda.srm')
FS.readFile('/home/web_user/retroarch/userdata/saves/Snes9x/zelda.srm')
```

Related APIs: [`getEmscriptenModule`](https://nostalgist.js.org/apis/get-emscripten-module), [`getEmscriptenFS`](https://nostalgist.js.org/apis/get-emscripten-fs)
Expand Down
4 changes: 2 additions & 2 deletions src/nostalgist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ export class Nostalgist {
* savestate_thumbnail_enable: true,
* }
* runEmulatorManually: false,
* resolveCoreJs({ core }) {
* resolveCoreJs(core) {
* return `https://example.com/core/${core}_libretro.js`
* },
* resolveCoreWasm({ core }) {
* resolveCoreWasm(core) {
* return `https://example.com/core/${core}_libretro.wasm`
* },
* resolveRom({ file }) {
Expand Down

0 comments on commit 6b54387

Please sign in to comment.