RetroArch/pkg/emscripten
2016-09-24 15:36:27 -05:00
..
embed (ems) fix this 2016-09-24 15:36:27 -05:00
itch fix typo 2016-09-22 22:15:02 -05:00
libretro Update index.html 2016-09-21 15:37:52 -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);
   */
}