diff options
Diffstat (limited to 'mazeoflife.cpp')
| -rw-r--r-- | mazeoflife.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
| diff --git a/mazeoflife.cpp b/mazeoflife.cpp index 3afff78..873e08c 100644 --- a/mazeoflife.cpp +++ b/mazeoflife.cpp | |||
| @@ -59,6 +59,11 @@ int main(int, char**) { | |||
| 59 | game.state = std::make_unique<TitleState>(game); | 59 | game.state = std::make_unique<TitleState>(game); |
| 60 | 60 | ||
| 61 | #ifdef __EMSCRIPTEN__ | 61 | #ifdef __EMSCRIPTEN__ |
| 62 | EM_ASM(FS.mkdir('/offline'); FS.mount(IDBFS, {}, '/offline'); | ||
| 63 | FS.syncfs(true, function(err){ | ||
| 64 | // Error | ||
| 65 | });); | ||
| 66 | |||
| 62 | emscripten_set_main_loop_arg(main_loop, &game, 0, 1); | 67 | emscripten_set_main_loop_arg(main_loop, &game, 0, 1); |
| 63 | #else | 68 | #else |
| 64 | for (;;) { | 69 | for (;;) { |
