Mercurial > hg > openttd
changeset 6022:77a5708ac3f8 draft
(svn r8745) [PSP] -Add: added a CSleep() for PSP
author | truelight <truelight@openttd.org> |
---|---|
date | Thu, 15 Feb 2007 16:15:00 +0000 |
parents | 3cfdf096e874 |
children | 5c1152d41f0f |
files | src/unix.cpp |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/unix.cpp +++ b/src/unix.cpp @@ -260,13 +260,11 @@ void CSleep(int milliseconds) { - #if !defined(__BEOS__) && !defined(__AMIGA__) - usleep(milliseconds * 1000); - #endif - #ifdef __BEOS__ + #if defined(PSP) + sceKernelDelayThread(milliseconds * 1000); + #elif defined(__BEOS__) snooze(milliseconds * 1000); - #endif - #if defined(__AMIGA__) + #elif defined(__AMIGA__) { ULONG signals; ULONG TimerSigBit = 1 << TimerPort->mp_SigBit; @@ -282,7 +280,9 @@ } WaitIO((struct IORequest *)TimerRequest); } - #endif // __AMIGA__ + #else + usleep(milliseconds * 1000); + #endif } #ifdef WITH_ICONV