mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Use the PID file in non-debug builds
The PID file is used to check if openmohaa cleanly exited, and in case it didn't, the user is prompted to start in safe mode
This commit is contained in:
parent
0fb80a4ab5
commit
1ef61a6e3d
1 changed files with 3 additions and 1 deletions
|
@ -1863,7 +1863,9 @@ void Com_Init( char *commandLine ) {
|
||||||
|
|
||||||
Sys_Init();
|
Sys_Init();
|
||||||
|
|
||||||
//Sys_InitPIDFile(FS_GetCurrentGameDir());
|
#ifndef NDEBUG
|
||||||
|
Sys_InitPIDFile(FS_GetCurrentGameDir());
|
||||||
|
#endif
|
||||||
|
|
||||||
// Pick a random port value
|
// Pick a random port value
|
||||||
Com_RandomBytes((byte*)&qport, sizeof(int));
|
Com_RandomBytes((byte*)&qport, sizeof(int));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue