2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Changes to support hecl-gui

This commit is contained in:
Jack Andersen
2018-01-01 15:04:23 -10:00
parent 74f2d0c10e
commit a1c5677413
8 changed files with 42 additions and 3 deletions

View File

@@ -22,6 +22,8 @@
using YAMLNode = athena::io::YAMLNode;
extern hecl::SystemString ExeDir;
namespace urde
{
@@ -227,6 +229,19 @@ void ViewManager::init(boo::IApplication* app)
else if (arg == _S("--no-sound"))
m_voiceEngine->setVolume(0.f);
}
if (m_deferedProject.empty())
{
/* Default behavior - search upwards for packaged project containing the program */
if (hecl::ProjectRootPath root = hecl::SearchForProject(ExeDir))
{
hecl::SystemString rootPath(root.getAbsolutePath());
hecl::Sstat theStat;
if (!hecl::Stat((rootPath + _S("/out/MP1/!original_ids.upak")).c_str(), &theStat) &&
S_ISREG(theStat.st_mode))
m_deferedProject = rootPath + _S("/out");
}
}
}
bool ViewManager::proc()