mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 16:24:55 +00:00
ToolInit: Attempt to create directory if it doesn't exist
This commit is contained in:
@@ -20,8 +20,12 @@ public:
|
||||
|
||||
if (HECL::Stat(dir->c_str(), &theStat))
|
||||
{
|
||||
LogModule.report(LogVisor::FatalError, _S("unable to stat '%s'"), dir->c_str());
|
||||
return;
|
||||
HECL::MakeDir(dir->c_str());
|
||||
if (HECL::Stat(dir->c_str(), &theStat))
|
||||
{
|
||||
LogModule.report(LogVisor::FatalError, _S("unable to stat '%s'"), dir->c_str());
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!S_ISDIR(theStat.st_mode))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user