mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Merge pull request #17779 from EmulatorJS/master
Cleanup emscripten libretro target
This commit is contained in:
10 files changed
+44
-17
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user