summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-02-04 11:42:43 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:06 +0100
commiteabaabaaafe9daa690432059261143b0e4fecfe5 (patch)
treecba36c19c383b729a5fe63434a6dc9687abc9603 /src/qcommon
parent6aec9f7560daa005c513cde384f063f0b9b55dbc (diff)
remove the (generally unsecure) use of PIDs and PID files
this includes the removal of the "safe mode" question feature
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/common.c12
-rw-r--r--src/qcommon/qcommon.h2
2 files changed, 0 insertions, 14 deletions
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 */