2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-18 16:05:24 +00:00

Begin Runtime ImGui integration

This commit is contained in:
2021-05-25 12:24:05 -04:00
parent a3a8bf5667
commit 55002f1537
8 changed files with 181 additions and 10 deletions

View File

@@ -769,6 +769,7 @@ void CMain::Init(const hecl::Runtime::FileStoreManager& storeMgr, hecl::CVarMana
"Warp"sv, "Warps to a given area and world"sv, "[worldname] areaId"sv,
[this](hecl::Console* console, const std::vector<std::string>& args) { Warp(console, args); },
hecl::SConsoleCommand::ECommandFlags::Normal);
m_imGuiConsole = std::make_unique<ImGuiConsole>();
bool loadedVersion = false;
if (CDvdFile::FileExists("version.yaml")) {
@@ -907,8 +908,9 @@ bool CMain::Proc(float dt) {
m_loadedPersistentResources = true;
}
m_console->proc();
if (!m_console->isOpen()) {
m_imGuiConsole->proc();
if (!m_paused) {
CGBASupport::GlobalPoll();
x164_archSupport->UpdateTicks(dt);
x164_archSupport->Update(dt);