mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 02:59:49 +01:00
Core: Add some libnx calls for Switch.
This commit is contained in:
1 parent
d0e2aa3a4f
commit
fe32ad88fb
3 files changed
+39
-11
No files matched your search
@@ -11,6 +11,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBNX
|
||||
#include <switch.h>
|
||||
#endif // HAVE_LIBNX
|
||||
|
||||
static double curtime = 0;
|
||||
static float curtime_f = 0;
|
||||
|
||||
@@ -79,6 +83,8 @@ int time_now_ms() {
|
||||
void sleep_ms(int ms) {
|
||||
#ifdef _WIN32
|
||||
Sleep(ms);
|
||||
#elif defined(HAVE_LIBNX)
|
||||
svcSleepThread(ms * 1000000);
|
||||
#else
|
||||
usleep(ms * 1000);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user