mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 06:32:10 +08:00
engine: move crash handler initialization after console, so error messages could be seen in console, but move log creation before console, so log catches more messages
This commit is contained in:
@@ -1027,9 +1027,6 @@ static void Host_InitCommon( int argc, char **argv, const char *progname, qboole
|
||||
Sys_PrintBugcompUsage( exename );
|
||||
}
|
||||
|
||||
if( !Sys_CheckParm( "-noch" ))
|
||||
Sys_SetupCrashHandler( argv[0] );
|
||||
|
||||
host.change_game = bChangeGame || Sys_CheckParm( "-changegame" );
|
||||
host.config_executed = false;
|
||||
host.status = HOST_INIT; // initialzation started
|
||||
@@ -1101,8 +1098,12 @@ static void Host_InitCommon( int argc, char **argv, const char *progname, qboole
|
||||
Cvar_SetValue( "sys_ticrate", fps );
|
||||
}
|
||||
|
||||
Sys_InitLog();
|
||||
Con_Init(); // early console running to catch all the messages
|
||||
|
||||
if( !Sys_CheckParm( "-noch" ))
|
||||
Sys_SetupCrashHandler( argv[0] );
|
||||
|
||||
#if XASH_ENGINE_TESTS
|
||||
if( Sys_CheckParm( "-runtests" ))
|
||||
Host_RunTests( 0 );
|
||||
@@ -1114,8 +1115,6 @@ static void Host_InitCommon( int argc, char **argv, const char *progname, qboole
|
||||
Platform_Init( Host_IsDedicated( ) || developer >= DEV_EXTENDED, basedir );
|
||||
FS_Init( basedir );
|
||||
|
||||
Sys_InitLog();
|
||||
|
||||
// print current developer level to simplify processing users feedback
|
||||
if( developer > 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user