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:
smallmodel 2024-12-14 19:40:49 +01:00
parent 0fb80a4ab5
commit 1ef61a6e3d
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -1863,7 +1863,9 @@ void Com_Init( char *commandLine ) {
Sys_Init();
//Sys_InitPIDFile(FS_GetCurrentGameDir());
#ifndef NDEBUG
Sys_InitPIDFile(FS_GetCurrentGameDir());
#endif
// Pick a random port value
Com_RandomBytes((byte*)&qport, sizeof(int));