mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Added wait for debugger feature to Cocoa backend
Use -wait_for_debugger command line switch to display message box on startup It's available in Debug configuration only
This commit is contained in:
parent
de7d8995d5
commit
587f6f0f91
1 changed files with 10 additions and 0 deletions
|
@ -551,6 +551,16 @@ int main(int argc, char** argv)
|
|||
{
|
||||
s_restartedFromWADPicker = true;
|
||||
}
|
||||
#if _DEBUG
|
||||
else if (0 == strcmp(argument, "-wait_for_debugger"))
|
||||
{
|
||||
NSAlert* alert = [[NSAlert alloc] init];
|
||||
[alert setMessageText:@GAMENAME];
|
||||
[alert setInformativeText:@"Waiting for debugger..."];
|
||||
[alert addButtonWithTitle:@"Continue"];
|
||||
[alert runModal];
|
||||
}
|
||||
#endif // _DEBUG
|
||||
else
|
||||
{
|
||||
s_argvStorage.Push(argument);
|
||||
|
|
Loading…
Reference in a new issue