|
|
|
@ -147,12 +147,20 @@ void Posix_Daemonize( void )
@@ -147,12 +147,20 @@ void Posix_Daemonize( void )
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if !XASH_SDL && !XASH_ANDROID |
|
|
|
|
|
|
|
|
|
void Platform_Init( void ) |
|
|
|
|
{ |
|
|
|
|
Posix_Daemonize(); |
|
|
|
|
} |
|
|
|
|
void Platform_Shutdown( void ) {} |
|
|
|
|
|
|
|
|
|
void Platform_Shutdown( void ) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void *Platform_GetNativeObject( const char *name ) |
|
|
|
|
{ |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#if XASH_TIMER == TIMER_POSIX |
|
|
|
@ -161,7 +169,7 @@ double Platform_DoubleTime( void )
@@ -161,7 +169,7 @@ double Platform_DoubleTime( void )
|
|
|
|
|
struct timespec ts; |
|
|
|
|
#if XASH_IRIX |
|
|
|
|
clock_gettime( CLOCK_SGI_CYCLE, &ts ); |
|
|
|
|
#else |
|
|
|
|
#else |
|
|
|
|
clock_gettime( CLOCK_MONOTONIC, &ts ); |
|
|
|
|
#endif |
|
|
|
|
return (double) ts.tv_sec + (double) ts.tv_nsec/1000000000.0; |
|
|
|
|