This commit is contained in:
Jack Andersen 2016-02-25 14:12:36 -10:00
commit 45caf1d649
2 changed files with 7 additions and 3 deletions

View File

@ -18,11 +18,15 @@ public:
else else
dir = &info.cwd; dir = &info.cwd;
if (HECL::Stat(dir->c_str(), &theStat))
{
HECL::MakeDir(dir->c_str());
if (HECL::Stat(dir->c_str(), &theStat)) if (HECL::Stat(dir->c_str(), &theStat))
{ {
LogModule.report(LogVisor::FatalError, _S("unable to stat '%s'"), dir->c_str()); LogModule.report(LogVisor::FatalError, _S("unable to stat '%s'"), dir->c_str());
return; return;
} }
}
if (!S_ISDIR(theStat.st_mode)) if (!S_ISDIR(theStat.st_mode))
{ {
LogModule.report(LogVisor::FatalError, _S("'%s' is not a directory"), dir->c_str()); LogModule.report(LogVisor::FatalError, _S("'%s' is not a directory"), dir->c_str());

View File

@ -75,7 +75,7 @@ struct HECLApplicationCallback : boo::IApplicationCallback
boo::IGraphicsDataFactory* gfxF = m_mainWindow->getLoadContextDataFactory(); boo::IGraphicsDataFactory* gfxF = m_mainWindow->getLoadContextDataFactory();
boo::SWindowRect mainWindowRect = m_mainWindow->getWindowFrame(); boo::SWindowRect mainWindowRect = m_mainWindow->getWindowFrame();
renderTex = gfxF->newRenderTexture(mainWindowRect.size[0], mainWindowRect.size[1]); renderTex = gfxF->newRenderTexture(mainWindowRect.size[0], mainWindowRect.size[1], false, false);
/* HECL managers */ /* HECL managers */
HECL::Runtime::FileStoreManager fileMgr(app->getUniqueName()); HECL::Runtime::FileStoreManager fileMgr(app->getUniqueName());