engine: platform: sdl: minor style changes
This commit is contained in:
parent
5e1b5d89f7
commit
d6d98bd297
2 changed files with 10 additions and 11 deletions
|
@ -269,6 +269,7 @@ static void Sys_PrintStdout( const char *logtime, const char *msg )
|
|||
// just spew it to stderr normally in debug mode
|
||||
fprintf( stderr, "%s %s", logtime, buf );
|
||||
#endif // XASH_NSWITCH && NSWITCH_DEBUG
|
||||
|
||||
#elif !XASH_WIN32 // Wcon does the job
|
||||
Sys_PrintLogfile( STDOUT_FILENO, logtime, msg, XASH_COLORIZE_CONSOLE );
|
||||
Sys_FlushStdout();
|
||||
|
|
|
@ -62,14 +62,13 @@ void Platform_Init( void )
|
|||
SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0");
|
||||
SDL_StopTextInput();
|
||||
#endif // XASH_SDL == 2
|
||||
#if XASH_POSIX
|
||||
Posix_Daemonize();
|
||||
#endif
|
||||
#ifdef XASH_WIN32
|
||||
Wcon_CreateConsole(); // system console used by dedicated server or show fatal errors
|
||||
#endif
|
||||
#ifdef XASH_NSWITCH
|
||||
|
||||
#if XASH_NSWITCH
|
||||
NSwitch_Init();
|
||||
#elif XASH_WIN32
|
||||
Wcon_CreateConsole(); // system console used by dedicated server or show fatal errors
|
||||
#elif XASH_POSIX
|
||||
Posix_Daemonize();
|
||||
#endif
|
||||
|
||||
SDLash_InitCursors();
|
||||
|
@ -79,10 +78,9 @@ void Platform_Shutdown( void )
|
|||
{
|
||||
SDLash_FreeCursors();
|
||||
|
||||
#ifdef XASH_WIN32
|
||||
#if XASH_NSWITCH
|
||||
NSwitch_Shutdown();
|
||||
#elif XASH_WIN32
|
||||
Wcon_DestroyConsole();
|
||||
#endif
|
||||
#ifdef XASH_NSWITCH
|
||||
NSwitch_Shutdown();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue