Merge pull request #17779 from EmulatorJS/master

Cleanup emscripten libretro target
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-08-13 21:40:24 +02:00
commit 5a9a2bf6fe
10 files changed
+44 -17

No files matched your search

+6
View File
@@ -9,6 +9,10 @@
#include <switch.h>
#endif // HAVE_LIBNX
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif // __EMSCRIPTEN__
#ifdef _WIN32
#include "CommonWindows.h"
#include <mmsystem.h>
@@ -138,6 +142,8 @@ void sleep_ms(int ms) {
Sleep(ms);
#elif defined(HAVE_LIBNX)
svcSleepThread(ms * 1000000);
#elif defined(__EMSCRIPTEN__)
emscripten_sleep(ms);
#else
usleep(ms * 1000);
#endif