mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-09 00:48:04 +00:00
Public release of the DLU server code!
Have fun!
This commit is contained in:
25
thirdparty/raknet/Source/RakSleep.cpp
vendored
Normal file
25
thirdparty/raknet/Source/RakSleep.cpp
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
#if defined(_XBOX360)
|
||||
#include "Console1Includes.h"
|
||||
#elif defined(_WIN32)
|
||||
#include <windows.h> // Sleep
|
||||
#elif defined(_PS3)
|
||||
#include "Console2Includes.h"
|
||||
#include <sys/timer.h>
|
||||
#else
|
||||
#include <unistd.h> // usleep
|
||||
#endif
|
||||
|
||||
|
||||
#include "RakSleep.h"
|
||||
|
||||
void RakSleep(unsigned int ms)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
Sleep(ms);
|
||||
#elif defined(_PS3)
|
||||
// Use the version of usleep on the console here, this is a macro
|
||||
_PS3_usleep(ms * 1000);
|
||||
#else
|
||||
usleep(ms * 1000);
|
||||
#endif
|
||||
}
|
Reference in New Issue
Block a user