mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
show a msgbox of where I'm running from on osx
This commit is contained in:
parent
5ca7aab58b
commit
baf8a1dbc7
@ -1778,6 +1778,7 @@ ReturnCode Platform_SetDefaultCurrentDirectory(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CC_BUILD_OSX
|
#ifdef CC_BUILD_OSX
|
||||||
|
Window_ShowDialog("(DEBUG) Exe path is", path);
|
||||||
static const String bundle = String_FromConst(".app/Contents/MacOS/");
|
static const String bundle = String_FromConst(".app/Contents/MacOS/");
|
||||||
String raw = String_Init(path, len, 0);
|
String raw = String_Init(path, len, 0);
|
||||||
|
|
||||||
@ -1791,6 +1792,9 @@ ReturnCode Platform_SetDefaultCurrentDirectory(void) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
path[len] = '\0';
|
path[len] = '\0';
|
||||||
|
#ifdef CC_BUILD_OSX
|
||||||
|
Window_ShowDialog("(DEBUG) And my folder is", path);
|
||||||
|
#endif
|
||||||
return chdir(path) == -1 ? errno : 0;
|
return chdir(path) == -1 ? errno : 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user