| 413 | |
| 414 | #ifdef __EMSCRIPTEN__ |
| 415 | const char* emscripten_before_unload(int eventType, const void *reserved, void *userData) { |
| 416 | MainStruct& mS = *((MainStruct*)userData); |
| 417 | mS.m->save_config(); |
| 418 | return ""; |
| 419 | } |
| 420 | #endif |
| 421 | |
| 422 | void init_logs(MainStruct& mS) { |
nothing calls this directly
no test coverage detected