mirror of https://github.com/AxioDL/metaforce.git
OS X now using POSIX-style file store
This commit is contained in:
parent
103e2a04cc
commit
fff3100f17
|
@ -1 +1 @@
|
|||
Subproject commit c34b93f00f3da9811b91e1850ac21ff7de962dcc
|
||||
Subproject commit cd4df5cb270be177740bd6ab1fed60f68481002b
|
|
@ -27,18 +27,6 @@ FileStoreManager::FileStoreManager(const SystemString& domain)
|
|||
|
||||
HECL::MakeDir(path.c_str());
|
||||
m_storeRoot = path;
|
||||
#elif __APPLE__
|
||||
const char* home = getenv("HOME");
|
||||
if (!home)
|
||||
Log.report(LogVisor::FatalError, "unable to locate $HOME for file store");
|
||||
std::string path(home);
|
||||
path += "/Library/Application Support/HECL Runtime";
|
||||
if (mkdir(path.c_str(), 0755) && errno != EEXIST)
|
||||
Log.report(LogVisor::FatalError, "unable to mkdir at %s", path.c_str());
|
||||
path += '/' + domain;
|
||||
if (mkdir(path.c_str(), 0755) && errno != EEXIST)
|
||||
Log.report(LogVisor::FatalError, "unable to mkdir at %s", path.c_str());
|
||||
m_storeRoot = path;
|
||||
#else
|
||||
const char* home = getenv("HOME");
|
||||
if (!home)
|
||||
|
|
Loading…
Reference in New Issue