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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user