From e4ac957a7558b68fd70a03aaf17ddb43045fdeff Mon Sep 17 00:00:00 2001 From: Arianrhod Sandlot Date: Sat, 18 Jan 2025 11:48:19 +0800 Subject: [PATCH] feat: update default retroarch-emscripten-build version to v1.20.0 --- docs/src/content/docs/apis/launch.md | 4 ++-- docs/src/content/docs/guides/under-the-hood.md | 4 ++-- src/options.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/src/content/docs/apis/launch.md b/docs/src/content/docs/apis/launch.md index 7f1f76b..b574452 100644 --- a/docs/src/content/docs/apis/launch.md +++ b/docs/src/content/docs/apis/launch.md @@ -80,8 +80,8 @@ const nostalgist = await Nostalgist.launch({ If you pass a `string` here, by default, we will lookup the corresponding core at this GitHub repository [retroarch-emscripten-build](https://github.com/arianrhodsandlot/retroarch-emscripten-build), which contains the official build cores from [libretro buildbot](https://buildbot.libretro.com/stable/) , and then the core will be loaded via jsDelivr, a public free CDN that can load files from GitHub with CORS support. For example, if you pass `snes9x` here, these 2 files will be loaded: - + [snes9x_libretro.js](https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.19.1/retroarch/snes9x_libretro.js) - + [snes9x_libretro.wasm](https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.19.1/retroarch/snes9x_libretro.wasm) + + [snes9x_libretro.js](https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.20.0/retroarch/snes9x_libretro.js) + + [snes9x_libretro.wasm](https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.20.0/retroarch/snes9x_libretro.wasm) That's because there is a default `resolveCoreJs` option that can resolve `string`s like `snes9x` to links above. By default, we support these cores from [retroarch-emscripten-build](https://github.com/arianrhodsandlot/retroarch-emscripten-build): > 2048, arduous, bk, bluemsx, chailove, craft, ecwolf, fbalpha2012_cps1, fbalpha2012_cps2, fbalpha2012, fbalpha2012_neogeo, fceumm, freechaf, galaksija, gambatte, gearboy, gearcoleco, gearsystem, genesis_plus_gx, genesis_plus_gx_wide, gme, gong, gw, handy, jaxe, jumpnbump, lowresnx, lutro, mame2000, mame2003, mame2003_plus, mednafen_lynx, mednafen_ngp, mednafen_pce_fast, mednafen_vb, mednafen_wswan, mgba, minivmac, mrboom, mu, neocd, nestopia, numero, nxengine, o2em, opera, pcsx_rearmed, picodrive, pocketcdg, prboom, quasi88, quicknes, retro8, snes9x2002, snes9x2005, snes9x2010, snes9x, squirreljme, tgbdual, theodore, tic80, tyrquake, uw8, uzem, vaporspec, vba_next, vecx, vice_x128, vice_x64, vice_x64sc, vice_xcbm2, vice_xcbm5x0, vice_xpet, vice_xplus4, vice_xscpu64, vice_xvic, virtualxt, vitaquake2-rogue, vitaquake2-xatrix, vitaquake2-zaero, vitaquake2, wasm4, x1, xrick diff --git a/docs/src/content/docs/guides/under-the-hood.md b/docs/src/content/docs/guides/under-the-hood.md index 176765d..da8f61a 100644 --- a/docs/src/content/docs/guides/under-the-hood.md +++ b/docs/src/content/docs/guides/under-the-hood.md @@ -12,8 +12,8 @@ Nostalgist.js itself doesn't contain any emulators, but it has a resonable defau [retrobrews](https://retrobrews.github.io/) project without additional configuration. By default, cores will be loaded via [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) from [retroarch-emscripten-build](https://github.com/arianrhodsandlot/retroarch-emscripten-build) through [jsDelivr](https://www.jsdelivr.com). For example, the fceumm core, an NES emulator, will be loaded from these URLs: -+ https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.19.1/retroarch/fceumm_libretro.js -+ https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.19.1/retroarch/fceumm_libretro.wasm ++ https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.20.0/retroarch/fceumm_libretro.js ++ https://cdn.jsdelivr.net/gh/arianrhodsandlot/retroarch-emscripten-build@v1.20.0/retroarch/fceumm_libretro.wasm Games from [retrobrews](https://retrobrews.github.io/) are loaded in a similar way too. And of course you can also load all the nessasary contents by yourself. diff --git a/src/options.ts b/src/options.ts index ecac699..5332622 100644 --- a/src/options.ts +++ b/src/options.ts @@ -50,7 +50,7 @@ const defaultRetroarchConfig: RetroArchConfig = { const cdnBaseUrl = 'https://cdn.jsdelivr.net/gh' const coreRepo = 'arianrhodsandlot/retroarch-emscripten-build' -const coreVersion = 'v1.19.1' +const coreVersion = 'v1.20.0' const coreDirectory = 'retroarch' const shaderRepo = 'libretro/glsl-shaders'