diff options
author | Eugene Sandulenko | 2017-02-07 21:20:31 +0100 |
---|---|---|
committer | GitHub | 2017-02-07 21:20:31 +0100 |
commit | c1edd6166907a332dca0f4037f934e56e0ab61f0 (patch) | |
tree | c8dafb82d4b696f81af9e96dda8f845003f0bfd9 /base | |
parent | b3784db8d55bde5db17aeebfd526e24b7ede54f2 (diff) | |
parent | 2f4d14aba50ef437c24af905aeec6e95437eb8fa (diff) | |
download | scummvm-rg350-c1edd6166907a332dca0f4037f934e56e0ab61f0.tar.gz scummvm-rg350-c1edd6166907a332dca0f4037f934e56e0ab61f0.tar.bz2 scummvm-rg350-c1edd6166907a332dca0f4037f934e56e0ab61f0.zip |
Merge pull request #896 from criezy/create-project-fixes
DEVTOOLS: Create project fixes
Diffstat (limited to 'base')
-rw-r--r-- | base/commandLine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 2d7b9f2d9f..51fee811d6 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -386,9 +386,15 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha } else { // On MacOS X prior to 10.9 the OS is sometimes adding a -psn_X_XXXXXX argument (where X are digits) // to pass the process serial number. We need to ignore it to avoid an error. + // When using XCode it also adds -NSDocumentRevisionsDebugMode YES argument if XCode option + // "Allow debugging when using document Versions Browser" is on (which is the default). #ifdef MACOSX if (strncmp(s, "-psn_", 5) == 0) continue; + if (strcmp(s, "-NSDocumentRevisionsDebugMode") == 0) { + ++i; // Also skip the YES that follows + continue; + } #endif bool isLongCmd = (s[0] == '-' && s[1] == '-'); |