/* ================= Sys_InitPIDFile ================= */ void Sys_InitPIDFile( const char *gamedir ) { if( Sys_WritePIDFile( gamedir ) ) { #ifndef DEDICATED char message[1024]; Com_sprintf( message, sizeof (message), "The last time %s ran, " "it didn't exit properly. This may be due to inappropriate video " "settings. Would you like to start with \"safe\" video settings?", com_productName->string ); if( Sys_Dialog( DT_YES_NO, message, "Abnormal Exit" ) == DR_YES ) { Cvar_Set( "com_abnormalExit", "1" ); } #endif } }
/* ================= Sys_InitPIDFile ================= */ void Sys_InitPIDFile(const char *gamedir) { if(Sys_WritePIDFile(gamedir)) { #ifndef DEDICATED char message[1024]; char modName[MAX_OSPATH]; FS_GetModDescription(gamedir, modName, sizeof (modName)); Q_CleanStr(modName); Com_sprintf(message, sizeof (message), "The last time %s ran, " "it didn't exit properly. This may be due to inappropriate video " "settings. Would you like to start with \"safe\" video settings?", modName); if(Sys_Dialog(DT_YES_NO, message, "Abnormal Exit") == DR_YES) { Cvar_Set("com_abnormalExit", "1"); } #endif } }