Skip to content

Commit

Permalink
fixup! Simplified DebugDisplayTextBuffer hooking.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Sep 21, 2024
1 parent dc7a969 commit bc90c93
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/CGameMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion source/CleoBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ namespace CLEO
}

// delayed until menu background drawing
if (stage == InitStage::FirstDraw)
if (stage == InitStage::OnDraw)
{
TRACE("CLEO initialization: Phase 2");

Expand Down
6 changes: 3 additions & 3 deletions source/CleoBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc90c93

Please sign in to comment.