mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-26 17:36:05 -05:00
macos dir issue
This commit is contained in:
parent
1b456ceb4c
commit
44bcf1844a
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue