From eabaabaaafe9daa690432059261143b0e4fecfe5 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Wed, 4 Feb 2015 11:42:43 +0100 Subject: remove the (generally unsecure) use of PIDs and PID files this includes the removal of the "safe mode" question feature --- src/qcommon/common.c | 12 ------------ src/qcommon/qcommon.h | 2 -- 2 files changed, 14 deletions(-) (limited to 'src/qcommon') diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 59659ef0..275ea4ea 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -2599,18 +2599,6 @@ void Com_Init( char *commandLine ) { Sys_Init(); - if( Sys_WritePIDFile( ) ) { -#ifndef DEDICATED - const char *message = "The last time " CLIENT_WINDOW_TITLE " ran, " - "it didn't exit properly. This may be due to inappropriate video " - "settings. Would you like to start with \"safe\" video settings?"; - - if( Sys_Dialog( DT_YES_NO, message, "Abnormal Exit" ) == DR_YES ) { - Cvar_Set( "com_abnormalExit", "1" ); - } -#endif - } - // Pick a random port value Com_RandomBytes( (byte*)&qport, sizeof(int) ); Netchan_Init( qport & 0xffff ); diff --git a/src/qcommon/qcommon.h b/src/qcommon/qcommon.h index e8764ef3..c896ccbe 100644 --- a/src/qcommon/qcommon.h +++ b/src/qcommon/qcommon.h @@ -1112,8 +1112,6 @@ typedef enum dialogResult_t Sys_Dialog( dialogType_t type, const char *message, const char *title ); -qboolean Sys_WritePIDFile( void ); - /* This is based on the Adaptive Huffman algorithm described in Sayood's Data * Compression book. The ranks are not actually stored, but implicitly defined * by the location of a node within a doubly-linked list */ -- cgit