mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-21 18:21:51 +00:00
(ems) remove some unused code
This commit is contained in:
parent
1cf7d758b5
commit
0515e9f753
@ -3,10 +3,9 @@
|
||||
*
|
||||
* This provides the basic JavaScript for the RetroArch web player.
|
||||
*/
|
||||
var dropbox = false;
|
||||
var client = new Dropbox.Client({ key: "il6e10mfd7pgf8r" });
|
||||
var XFS;
|
||||
var BrowserFS = browserfs;
|
||||
var afs;
|
||||
|
||||
var showError = function(error) {
|
||||
switch (error.status) {
|
||||
@ -73,12 +72,9 @@ function dropboxSyncComplete()
|
||||
console.log("WEBPLAYER: Sync successful");
|
||||
|
||||
setupFileSystem("dropbox");
|
||||
setupFolderStructure();
|
||||
preLoadingComplete();
|
||||
}
|
||||
|
||||
var afs;
|
||||
|
||||
function dropboxSync(dropboxClient, cb)
|
||||
{
|
||||
var dbfs = new BrowserFS.FileSystem.Dropbox(dropboxClient);
|
||||
@ -121,18 +117,10 @@ function setupFileSystem(backend)
|
||||
if(backend == "browser")
|
||||
{
|
||||
console.log("WEBPLAYER: Initializing LocalStorage");
|
||||
|
||||
/* create a local filesystem */
|
||||
var lsfs = new BrowserFS.FileSystem.LocalStorage();
|
||||
|
||||
var lsfs = new BrowserFS.FileSystem.LocalStorage()
|
||||
/* mount the filesystems onto mfs */
|
||||
mfs.mount('/home/web_user/retroarch/userdata', lsfs);
|
||||
|
||||
/* create a memory filesystem for content only
|
||||
var imfs = new BrowserFS.FileSystem.InMemory();*/
|
||||
|
||||
/* mount the filesystems onto mfs
|
||||
mfs.mount('/home/web_user/retroarch/userdata/content/', imfs);*/
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -158,24 +146,6 @@ function getParam(name) {
|
||||
}
|
||||
}
|
||||
|
||||
function setupFolderStructure()
|
||||
{
|
||||
FS.createPath('/', '/home/web_user', true, true);
|
||||
}
|
||||
|
||||
function stat(path)
|
||||
{
|
||||
try{
|
||||
FS.stat(path);
|
||||
}
|
||||
catch(err)
|
||||
{
|
||||
console.log("WEBPLAYER: file " + path + " doesn't exist");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function startRetroArch()
|
||||
{
|
||||
$('.webplayer').show();
|
||||
@ -353,7 +323,6 @@ $(function() {
|
||||
$('#lblLocal').addClass('active');
|
||||
preLoadingComplete();
|
||||
setupFileSystem("browser");
|
||||
setupFolderStructure();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user