Skip to content

Commit b9a28bc

Browse files
committed
Skip stale PID dialog on macOS
The Sys_Dialog call that prompts about safe video settings after an abnormal exit uses NSAlert on macOS, which can block indefinitely when called before the window server connection is fully established. This leaves the process hung with no visible UI. Skip the dialog on macOS while preserving it on other platforms.
1 parent 656aca0 commit b9a28bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/qcommon/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2773,7 +2773,7 @@ void Com_Init( char *commandLine ) {
27732773
Sys_Init();
27742774

27752775
if( Sys_WritePIDFile( ) ) {
2776-
#ifndef DEDICATED
2776+
#if !defined(DEDICATED) && !defined(MACOS_X)
27772777
const char *message = "The last time " CLIENT_WINDOW_TITLE " ran, "
27782778
"it didn't exit properly. This may be due to inappropriate video "
27792779
"settings. Would you like to start with \"safe\" video settings?";

0 commit comments

Comments
 (0)