Scripts for build upstream files for Retro Assembly.
Our work contains three steps:
- Apply patches to some upstream repository (currently there is only RetroArch need to be patched), for better usage inside browser or bug fixes.
- Compile RetroArch cores with Emscripten following instructions indroduced here: RetroArch Web Player.
- Archive the wasm and js files.
By running make
the above steps will automatically run sequentially.
Then all RetroArch cores will be built and archived in zip format. All artifacts will be put inside a dist
directory.
In addition, RetroArch cores will be uploaded to NPM for further usage in Retro Assembly via jsDelivr, a public CDN service that can delegate access to NPM files.
- Start a static HTTP server at the root of the project. Maybe
python3 -m http.server
is a convenient choice. - Visit http://localhost:8000/demo/index.html
- Select a core and upload a ROM, then the selected RetroArch core will run.
- Upstream Emulators:
- a5200 Emulator for Atari 5200.
- FBNeo Emulator for arcades.
- prosystem-libretro Emulator for Atari 7800.
- stella2014-libretro Emulator for Atari 2600.
- RetroArch We mainly rely on the fantastic work done by them.
- Emscripten Without which we could not run native codes inside browsers.
- webretro Parts of our patches made on RetroArch is adapted from here.
- RetroArch patched by EmulatorJS maintainer Parts of our patches made on RetroArch is adapted from here.
GPL-3.0