2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 19:04:56 +00:00

Various fixes and tweaks, Implement CExplosion, Add cheats

This commit is contained in:
2018-04-26 14:12:20 -07:00
parent ae48196c3f
commit 6d60ccfd04
26 changed files with 297 additions and 75 deletions

View File

@@ -59,7 +59,6 @@ struct Application : boo::IApplicationCallback
hecl::Runtime::FileStoreManager m_fileMgr;
hecl::CVarManager m_cvarManager;
hecl::CVarCommons m_cvarCommons;
hecl::Console m_console;
std::unique_ptr<ViewManager> m_viewManager;
bool m_running = true;
@@ -67,12 +66,9 @@ struct Application : boo::IApplicationCallback
Application() :
m_fileMgr(_S("urde")),
m_cvarManager(m_fileMgr),
m_cvarCommons(m_cvarManager),
m_console(&m_cvarManager)
m_cvarCommons(m_cvarManager)
{
//hecl::Console::RegisterLogger(&m_console);
m_viewManager = std::make_unique<ViewManager>(m_fileMgr, m_cvarManager);
m_console.registerCommand("quit", "Quits application instantly", "", std::bind(&Application::quit, this, std::placeholders::_1, std::placeholders::_2));
}
virtual ~Application() = default;
@@ -147,11 +143,6 @@ struct Application : boo::IApplicationCallback
{
return m_cvarCommons.getDeepColor();
}
void quit(hecl::Console* con = nullptr, const std::vector<std::string>& arg = std::vector<std::string>())
{
m_running = false;
}
};
}