mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 21:41:03 +00:00
(PSP1) Implement rarch_sleep for PSP1
This commit is contained in:
parent
a33c7a7d61
commit
844ea8d1fc
@ -690,14 +690,18 @@ static inline float db_to_gain(float db)
|
||||
return powf(10.0f, db / 20.0f);
|
||||
}
|
||||
|
||||
#ifdef GEKKO
|
||||
#if defined(GEKKO)
|
||||
#include <unistd.h>
|
||||
#elif defined(PSP)
|
||||
#include <pspthreadman.h>
|
||||
#endif
|
||||
|
||||
static inline void rarch_sleep(unsigned msec)
|
||||
{
|
||||
#if defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)
|
||||
sys_timer_usleep(1000 * msec);
|
||||
#elif defined(PSP)
|
||||
sceKernelDelayThread(1000 * msec);
|
||||
#elif defined(_WIN32)
|
||||
Sleep(msec);
|
||||
#elif defined(XENON)
|
||||
|
Loading…
x
Reference in New Issue
Block a user