2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-28 13:02:13 +01:00

engine: platform: sdl: minor style changes

This commit is contained in:
Alibek Omarov 2023-02-09 05:59:30 +03:00
parent 5e1b5d89f7
commit d6d98bd297
2 changed files with 10 additions and 11 deletions

View File

@ -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();

View File

@ -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
}