From d53613c8f240c3031781d95a40d87997c24d8a27 Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 15 Feb 2007 16:15:00 +0000 Subject: (svn r8745) [PSP] -Add: added a CSleep() for PSP --- src/unix.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/unix.cpp b/src/unix.cpp index cee8082d9..68b96ee39 100644 --- a/src/unix.cpp +++ b/src/unix.cpp @@ -260,13 +260,11 @@ bool InsertTextBufferClipboard(Textbuf *tb) 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 @@ void CSleep(int milliseconds) } WaitIO((struct IORequest *)TimerRequest); } - #endif // __AMIGA__ + #else + usleep(milliseconds * 1000); + #endif } #ifdef WITH_ICONV -- cgit v1.2.3-70-g09d2