macOS can now build in debug mode, and can be built outside of a bundle
This commit is contained in:
parent
c5ba20173b
commit
aa98e6e6d0
3 changed files with 26 additions and 20 deletions
|
|
@ -21,7 +21,9 @@ void switch_cwd() {
|
|||
CFStringGetCString(str, path, 4096, kCFStringEncodingUTF8);
|
||||
CFRelease(str);
|
||||
std::string newCWD(path);
|
||||
#ifdef MACOS_MAKE_BUNDLE
|
||||
newCWD += "/Contents/Resources";
|
||||
#endif
|
||||
|
||||
std::filesystem::current_path(std::filesystem::path(newCWD));
|
||||
#elif _WIN32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue