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

Always ensure we have a valid CRandom16 for the GUI code, implement CScriptTimer inespection

This commit is contained in:
2021-05-29 16:16:59 -07:00
parent a67389cea8
commit 68845c9ee3
2 changed files with 16 additions and 1 deletions

View File

@@ -643,6 +643,11 @@ void ImGuiConsole::ShowAppMainMenuBar(bool canInspect) {
}
void ImGuiConsole::PreUpdate() {
// We ned to make sure we have a valid CRandom16 at all times, so lets do that here
if (g_StateManager && g_StateManager->GetActiveRandom() == nullptr) {
g_StateManager->SetActiveRandomToDefault();
}
if (m_stepFrame) {
g_Main->SetPaused(true);
m_stepFrame = false;