2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 15:04:56 +00:00

Fixes for Apple Silicon

This commit is contained in:
2021-01-06 20:46:56 -05:00
parent ced84a1eb8
commit fe9e74561e
4 changed files with 9 additions and 9 deletions

View File

@@ -49,12 +49,9 @@ FileStoreManager::FileStoreManager(SystemStringView domain) : m_domain(domain) {
path = home;
path += "/.local/share";
}
path += "/hecl";
if (mkdir(path.c_str(), 0755) && errno != EEXIST)
Log.report(logvisor::Fatal, FMT_STRING("unable to mkdir at {}"), path);
path += '/';
path += "/hecl/";
path += domain.data();
if (mkdir(path.c_str(), 0755) && errno != EEXIST)
if (RecursiveMakeDir(path.c_str()) != 0)
Log.report(logvisor::Fatal, FMT_STRING("unable to mkdir at {}"), path);
m_storeRoot = path;
#endif