mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 17:33:33 +00:00
Merge pull request #7519 from eska014/web-presentation
Improve Web export presentation
This commit is contained in:
commit
07f65184f3
6 changed files with 246 additions and 185 deletions
|
@ -502,18 +502,12 @@ bool OS_JavaScript::main_loop_iterate() {
|
|||
|
||||
time_to_save_sync-=elapsed;
|
||||
|
||||
print_line("elapsed "+itos(elapsed)+" tts "+itos(time_to_save_sync));
|
||||
|
||||
if (time_to_save_sync<0) {
|
||||
//time to sync, for real
|
||||
// run 'success'
|
||||
print_line("DOING SYNCH!");
|
||||
EM_ASM(
|
||||
FS.syncfs(function (err) {
|
||||
assert(!err);
|
||||
console.log("Synched!");
|
||||
//ccall('success', 'v');
|
||||
});
|
||||
FS.syncfs(function(err) {
|
||||
if (err) { Module.printErr('Failed to save IDB file system: ' + err.message); }
|
||||
});
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue