Call FS.syncfs on Emscripten (#838)

Also, add a sync parameter to avoid calling syncfs too often.

Calling syncfs twice in a row is both inefficient and leads to errors
displaying twice. This allows us to bypass it when saving unlock.vvv as
part of savestatsandsettings.
This commit is contained in:
leo60228 authored and GitHub committed 2021-09-02 13:19:51 -04:00
1 parent 3c318814a4
commit be2b1564a8
4 files changed
+30 -10

No files matched your search

+2 -2
View File
@@ -156,8 +156,8 @@ public:
void loadstats(ScreenSettings* screen_settings);
bool savestats(const ScreenSettings* screen_settings);
bool savestats(void);
bool savestats(const ScreenSettings* screen_settings, bool sync = true);
bool savestats(bool sync = true);
void deletestats(void);