diff --git a/pkg/emscripten/README.md b/pkg/emscripten/README.md index fc4c9a7771..db22617c96 100644 --- a/pkg/emscripten/README.md +++ b/pkg/emscripten/README.md @@ -1,6 +1,25 @@ # RetroArch Web Player -# Requirements +The RetroArch Web Player is RetroArch compiled through [Emscripten](http://kripken.github.io/emscripten-site/). 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](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html). 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