Changeset - r6022:0dc54a2fcc2d
[Not reviewed]
master
0 1 0
truelight - 18 years ago 2007-02-15 16:15:00
truelight@openttd.org
(svn r8745) [PSP] -Add: added a CSleep() for PSP
1 file changed with 7 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/unix.cpp
Show inline comments
 
@@ -260,13 +260,11 @@ bool InsertTextBufferClipboard(Textbuf *
 

	
 
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
0 comments (0 inline, 0 general)