mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-16 07:29:53 +00:00
use /content for uploads/
This commit is contained in:
parent
37a907eb51
commit
a5a26fea61
@ -183,13 +183,14 @@ function selectFiles(files)
|
||||
|
||||
function uploadData(data,name)
|
||||
{
|
||||
$('#btnAdd').addClass('disabled');
|
||||
var dataView = new Uint8Array(data);
|
||||
FS.createDataFile('/', name, dataView, true, false);
|
||||
|
||||
var data = FS.readFile(name,{ encoding: 'binary' });
|
||||
FS.writeFile('/content/' + name, data ,{ encoding: 'binary' });
|
||||
FS.unlink(name);
|
||||
FS.createDataFile('/content/', name, dataView, true, false);
|
||||
|
||||
//var data = FS.readFile(name,{ encoding: 'binary' });
|
||||
//FS.writeFile('/content/' + name, data ,{ encoding: 'binary' });
|
||||
//FS.unlink(name);
|
||||
$('#btnAdd').removeClass('disabled');
|
||||
}
|
||||
|
||||
var Module =
|
||||
|
Loading…
x
Reference in New Issue
Block a user