RetroArch/pkg/emscripten
2018-11-10 07:10:01 -08:00
..
libretro Add Mu to Web Player 2018-11-10 07:10:01 -08:00
.gitignore emscripten: Add .gitignore to skip buildbot files 2016-09-10 23:54:32 -04:00
README.md Fix emscripten README 2018-11-10 14:44:46 +01:00

RetroArch Web Player

The RetroArch Web Player is RetroArch compiled through Emscripten. The following outlines how to compile RetroArch using Emscripten, and running it in your browser.

Compiling

To compile RetroArch with Emscripten, you'll first have to download and install the Emscripten SDK. Once it's loaded in your shell, you'll run something like the following...

mkdir ~/retroarch
cd ~/retroarch
git clone https://github.com/libretro/libretro-fceumm.git
cd libretro-fceumm
emmake make -f Makefile.libretro platform=emscripten
git clone https://github.com/libretro/RetroArch.git ~/retroarch/RetroArch
cp ~/retroarch/libretro-fceumm/fceumm_libretro_emscripten.bc ~/retroarch/RetroArch/dist-scripts/fceumm_libretro_emscripten.bc
cd ~/retroarch/RetroArch/dist-scripts
emmake ./dist-cores.sh emscripten

Usage

Most of the magic happens on the browser so nothing really on that regard

I you want a self hosted version you need

cd ${ROOT_WWW_PATH}/assets/frontend/bundle
../../../indexer > .index-xhr
cd ${ROOT_WWW_PATH}/assets/cores
../../indexer > .index-xhr

That should be it, you can add more cores to the list by editing index.html