macos dir issue

This commit is contained in:
camila314 2022-12-08 21:25:58 -06:00
parent 1b456ceb4c
commit 44bcf1844a

View file

@ -27,7 +27,13 @@ ghc::filesystem::path dirs::getSaveDir() {
}
ghc::filesystem::path dirs::getGeodeDir() {
#ifdef GEODE_IS_MACOS
char cwd[PATH_MAX];
getcwd(cwd, sizeof(cwd));
return ghc::filesystem::path(cwd) / "geode";
#else
return dirs::getGameDir() / "geode";
#endif
}
ghc::filesystem::path dirs::getGeodeSaveDir() {