mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Merge pull request #14881 from vit9696/macdebug
Improve Xcode debugging support
This commit is contained in:
2 files changed
+11
No files matched your search
@@ -69,6 +69,10 @@ ConsoleListener::ConsoleListener() : bHidden(true)
|
||||
bUseColor = false;
|
||||
#elif defined(_MSC_VER)
|
||||
bUseColor = false;
|
||||
#elif defined(__APPLE__)
|
||||
// Xcode builtin terminal used for debugging does not support colours.
|
||||
// Fortunately it can be detected with a TERM env variable.
|
||||
bUseColor = isatty(fileno(stdout)) && getenv("TERM") != NULL;
|
||||
#else
|
||||
bUseColor = isatty(fileno(stdout));
|
||||
#endif
|
||||
|
||||
@@ -612,6 +612,13 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (argv[i][0] == '-') {
|
||||
#if defined(__APPLE__)
|
||||
// On Apple system debugged executable may get -NSDocumentRevisionsDebugMode YES in argv.
|
||||
if (!strcmp(argv[i], "-NSDocumentRevisionsDebugMode") && argc - 1 > i) {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
switch (argv[i][1]) {
|
||||
case 'd':
|
||||
// Enable debug logging
|
||||
|
||||
Reference in new issue
Block a user