From baf8a1dbc773487d5a097e501f8f14b6be6084b7 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 3 Oct 2019 08:50:38 +1000 Subject: [PATCH] show a msgbox of where I'm running from on osx --- src/Platform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Platform.c b/src/Platform.c index 822b72f9c..21ac65dd2 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -1778,6 +1778,7 @@ ReturnCode Platform_SetDefaultCurrentDirectory(void) { } #ifdef CC_BUILD_OSX + Window_ShowDialog("(DEBUG) Exe path is", path); static const String bundle = String_FromConst(".app/Contents/MacOS/"); String raw = String_Init(path, len, 0); @@ -1791,6 +1792,9 @@ ReturnCode Platform_SetDefaultCurrentDirectory(void) { #endif path[len] = '\0'; +#ifdef CC_BUILD_OSX + Window_ShowDialog("(DEBUG) And my folder is", path); +#endif return chdir(path) == -1 ? errno : 0; } #endif