mirror of https://github.com/OpenTTD/OpenTTD
(svn r8745) [PSP] -Add: added a CSleep() for PSP
parent
6abbf15a8e
commit
c50396cb15
14
src/unix.cpp
14
src/unix.cpp
|
@ -260,13 +260,11 @@ bool InsertTextBufferClipboard(Textbuf *tb)
|
||||||
|
|
||||||
void CSleep(int milliseconds)
|
void CSleep(int milliseconds)
|
||||||
{
|
{
|
||||||
#if !defined(__BEOS__) && !defined(__AMIGA__)
|
#if defined(PSP)
|
||||||
usleep(milliseconds * 1000);
|
sceKernelDelayThread(milliseconds * 1000);
|
||||||
#endif
|
#elif defined(__BEOS__)
|
||||||
#ifdef __BEOS__
|
|
||||||
snooze(milliseconds * 1000);
|
snooze(milliseconds * 1000);
|
||||||
#endif
|
#elif defined(__AMIGA__)
|
||||||
#if defined(__AMIGA__)
|
|
||||||
{
|
{
|
||||||
ULONG signals;
|
ULONG signals;
|
||||||
ULONG TimerSigBit = 1 << TimerPort->mp_SigBit;
|
ULONG TimerSigBit = 1 << TimerPort->mp_SigBit;
|
||||||
|
@ -282,7 +280,9 @@ void CSleep(int milliseconds)
|
||||||
}
|
}
|
||||||
WaitIO((struct IORequest *)TimerRequest);
|
WaitIO((struct IORequest *)TimerRequest);
|
||||||
}
|
}
|
||||||
#endif // __AMIGA__
|
#else
|
||||||
|
usleep(milliseconds * 1000);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WITH_ICONV
|
#ifdef WITH_ICONV
|
||||||
|
|
Loading…
Reference in New Issue