1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

[Web] Expose API to force file system sync.

This commit is contained in:
Fabio Alessandrelli
2023-01-09 21:30:42 +01:00
parent 111de09c03
commit d0ba1517a7
6 changed files with 23 additions and 0 deletions

View File

@@ -1145,6 +1145,12 @@ Error OS_JavaScript::pwa_update() {
return godot_js_pwa_update() ? FAILED : OK;
}
void OS_JavaScript::force_fs_sync() {
if (is_userfs_persistent()) {
idb_needs_sync = true;
}
}
bool OS_JavaScript::is_userfs_persistent() const {
return idb_available;
}