You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int main() {
EM_ASM(
// Make a save directory
FS.mkdir('/home/web_user/.local/share/VVVVVV/saves');
FS.chmod('/home/web_user/.local/share/VVVVVV/saves', 777); // with or without, makes no difference, just emulating what the original VVVVVV C++ handling looked like (yes I am aware of bad permissions but this is WASM virtual machinery so I'm fine)
// Then mount with IDBFS type
FS.mount(IDBFS, {}, '/home/web_user/.local/share/VVVVVV/saves');
// Then sync
FS.syncfs(true, function (err) {
// Error
});
);
// open and save game
int off_file = fopen("/home/web_user/.local/share/VVVVVV/saves/qsave1.vvv");
...
// sync to make sure it is stored to IndexedDB
EM_ASM(
FS.syncfs(function (err) {
// Error
});
);
}```
When compiling with emscripten, save data does not persist. I noticed that there are handlings for this to save it but they are not working properly.
The text was updated successfully, but these errors were encountered: