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:
alexey.lysiuk 2017-11-02 14:49:08 +02:00
parent de7d8995d5
commit 587f6f0f91

View file

@ -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);