emscripten: minor refactoring

- Remove the use of EXPORTED_FUNCTIONS in favor of EMSCRIPTEN_KEEPALIVE
- SDL_Delay is no longer aliased to emscripten_sleep
This commit is contained in:
kichikuou
2021-01-17 13:55:43 +09:00
parent 8519bc1a55
commit cbb40d0b67
6 changed files with 10 additions and 8 deletions
+4
View File
@@ -489,7 +489,11 @@ void NACT::wait_after_open_menu()
void NACT::sys_sleep(int ms) {
pump_events();
ags->update_screen();
#ifdef __EMSCRIPTEN__
emscripten_sleep(ms);
#else
SDL_Delay(ms);
#endif
}
// WinMainとのインターフェース