1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00
RetroArch/pkg/emscripten
2017-12-08 18:15:22 -05:00
..
embed update icons 2017-08-09 13:04:56 -05:00
itch update icons 2017-08-09 13:04:56 -05:00
libretro emscripten: only fire keyup once, and don't wait so long to do so (libretro.js) 2017-12-08 18:15:22 -05:00
.gitignore emscripten: Add .gitignore to skip buildbot files 2016-09-10 23:54:32 -04:00
README.md (ems) add template for people who want their own self-hosted player 2016-09-16 10:04:46 -05:00

RetroArch Web Player

Requirements

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

I you want a self hosted version you need

  • A web server, nginx/apache will do, unzip a nightly here: https://buildbot.libretro.com/nightly/emscripten/
  • Move the template files from the embed folder to the top level dir, the other templates are for specific sites
  • A SSL certificate if you want to integrate with dropbox
  • A dropbox application, you can't use ours on a self hosted version

If you want assets for XMB, shaders, overlays you need to do the following:

If you want to add your game directory so it serves content to your users you need to do the following:

   /* create an XmlHttpRequest filesystem for the bundled data */
   /* --> uncomment this if you want builtin assets for XMB, overlays, etc.*/
   var xfs1 =  new BrowserFS.FileSystem.XmlHttpRequest
   ("--your-assets-index-file-name--", "--your-index-url--");
   
   /* create an XmlHttpRequest filesystem for content */
   /* --> uncomment this if you want to serve content.*/
   var xfs2 =  new BrowserFS.FileSystem.XmlHttpRequest
   ("--your-content-index-file-name--", "--your-index-url--");


   // lots and lots of code
   // and then
   
   /*
   mfs.mount('/home/web_user/retroarch/bundle', xfs1);
   mfs.mount('/home/web_user/retroarch/userdata/content/', xfs2);
   */
}