Fix macOS data directory (for real this time, I think)

This commit is contained in:
jacob1 2019-01-22 00:26:29 -05:00
parent af20029e08
commit 82bdf4a777

View File

@ -561,9 +561,9 @@ void ChdirToDataDirectory()
FSRefMakePath( &ref, (UInt8*)&path, PATH_MAX );
const char *tptPath = (std::string(path) + "/The Powder Toy").c_str();
mkdir(tptPath, 0755);
chdir(tptPath);
std::string tptPath = std::string(path) + "/The Powder Toy";
mkdir(tptPath.c_str(), 0755);
chdir(tptPath.c_str());
#endif
}