Skip to content

Commit

Permalink
Disable 'appname has stopped working' popup dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 17, 2016
1 parent bcdfc3d commit b57adb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xrCore/xrDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ void WINAPI xrDebug::PreErrorHandler(INT_PTR)

void xrDebug::SetupExceptionHandler(const bool &dedicated)
{
// disable 'appname has stopped working' popup dialog
UINT prevMode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
SetErrorMode(prevMode|SEM_NOGPFAULTERRORBOX);
BT_InstallSehFilter();
if (!dedicated && !strstr(GetCommandLine(), "-silent_error_mode"))
BT_SetActivityType(BTA_SHOWUI);
Expand Down

0 comments on commit b57adb8

Please sign in to comment.