Deploying to built from @ 9b46b5ce91
🚀
This commit is contained in:
parent
2a4cf5b564
commit
2bf6ef5080
File diff suppressed because one or more lines are too long
2221
gameasync/mapping.js
2221
gameasync/mapping.js
File diff suppressed because it is too large
Load Diff
12
js/drive.js
12
js/drive.js
|
@ -135,18 +135,18 @@ var createDummies = function() {
|
||||||
FS.mkdir('/game');
|
FS.mkdir('/game');
|
||||||
|
|
||||||
// Create dummy objects
|
// Create dummy objects
|
||||||
Object.values(mapping).forEach((file) => {
|
for (var i = 0; i < mappingArray.length; i++) {
|
||||||
// Get filename
|
// Get filename
|
||||||
|
const file = mappingArray[i][1];
|
||||||
const filename = '/game/' + file.split("?")[0];
|
const filename = '/game/' + file.split("?")[0];
|
||||||
|
|
||||||
// Check if folder
|
// Check if folder
|
||||||
if (file.endsWith('h=')) {
|
if (file.endsWith('h=')) {
|
||||||
return FS.mkdir(filename);
|
FS.mkdir(filename);
|
||||||
}
|
} else {
|
||||||
|
|
||||||
// Create dummy file
|
|
||||||
FS.writeFile(filename, '1');
|
FS.writeFile(filename, '1');
|
||||||
});
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.setBusy = function() {
|
window.setBusy = function() {
|
||||||
|
|
Loading…
Reference in New Issue