| 140 | } |
| 141 | |
| 142 | static bool html5_save_game_flush_ok() |
| 143 | { |
| 144 | // code-format off |
| 145 | return MAIN_THREAD_EM_ASM_INT({ |
| 146 | var s = Module.CrownSaveGame; |
| 147 | return s && !s.error && !s.syncError ? 1 : 0; |
| 148 | }) != 0; |
| 149 | // code-format on |
| 150 | } |
| 151 | #endif // if CROWN_PLATFORM_EMSCRIPTEN |
| 152 | |
| 153 | /// Asynchronous save game service. |