From bc90c9384f82bff48f9bd2172f73b8bd710bdccf Mon Sep 17 00:00:00 2001 From: Miran Date: Sat, 21 Sep 2024 04:09:07 +0200 Subject: [PATCH] fixup! Simplified DebugDisplayTextBuffer hooking. --- source/CGameMenu.cpp | 2 +- source/CleoBase.cpp | 2 +- source/CleoBase.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/CGameMenu.cpp b/source/CGameMenu.cpp index 2771314d..dbc2666b 100644 --- a/source/CGameMenu.cpp +++ b/source/CGameMenu.cpp @@ -24,7 +24,7 @@ namespace CLEO void __fastcall OnDrawMenuBackground(void *texture, int dummy, RwRect2D *rect, RwRGBA *color) { - GetInstance().Start(CCleoInstance::InitStage::FirstDraw); // late initialization + GetInstance().Start(CCleoInstance::InitStage::OnDraw); // late initialization CTexture_DrawInRect(texture, rect, color); // call original diff --git a/source/CleoBase.cpp b/source/CleoBase.cpp index f0675b8e..31637e39 100644 --- a/source/CleoBase.cpp +++ b/source/CleoBase.cpp @@ -160,7 +160,7 @@ namespace CLEO } // delayed until menu background drawing - if (stage == InitStage::FirstDraw) + if (stage == InitStage::OnDraw) { TRACE("CLEO initialization: Phase 2"); diff --git a/source/CleoBase.h b/source/CleoBase.h index 32b1e122..7fe30844 100644 --- a/source/CleoBase.h +++ b/source/CleoBase.h @@ -22,11 +22,11 @@ namespace CLEO { None, Initial, - FirstDraw, - Done = FirstDraw + OnDraw, + Done = OnDraw }; - // order here defines init and deinit and order! + // order here defines init and deinit order! CDmaFix DmaFix; CGameMenu GameMenu; CCodeInjector CodeInjector;