macOS can now build in debug mode, and can be built outside of a bundle

This commit is contained in:
Yousef Khadadeh 2025-11-24 02:00:06 -08:00
parent c5ba20173b
commit aa98e6e6d0
3 changed files with 26 additions and 20 deletions

View file

@ -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