Add preload and scripts

This commit is contained in:
Varun Patil 2020-05-06 13:03:51 +05:30
parent ad9474a6e9
commit 47ee508ae5
6 changed files with 1146 additions and 0 deletions

View file

@ -37,6 +37,7 @@ EM_JS(void, load_file_async_js, (const char* fullPathC), {
FS.createPreloadedFile(path, filename, iurl, true, true, function() {
window.fileAsyncCache[fullPath] = 1;
if (window.setNotBusy) window.setNotBusy();
if (window.fileLoadedAsync) window.fileLoadedAsync(fullPath);
wakeUp();
}, console.error);
});