projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added persistent personal game data for Emscripten platform
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index 81a54b064ca2fbe7f52a214172f2b9d643409ca3..0ce46341598a59e72cd1e3ee354286111bc9836d 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-1739,6
+1739,16
@@
void DrawMainMenu(void)
SetMouseCursor(CURSOR_DEFAULT);
OpenDoor(DOOR_CLOSE_1 | DOOR_OPEN_2);
+
+#if defined(PLATFORM_EMSCRIPTEN)
+ EM_ASM
+ (
+ FS.syncfs(function(err)
+ {
+ assert(!err);
+ });
+ );
+#endif
}
static void gotoTopLevelDir(void)