Skip to content

Commit

Permalink
Hide watermark in TR8
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIndra55 committed Aug 24, 2024
1 parent 2eaa6cd commit ac82ac3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,19 +183,18 @@ void MainMenu::SwitchPlayerCharacter(char* name) noexcept

void MainMenu::OnFrame()
{
#ifndef TR8
// Shows the watermark in th main menu
auto mainState = *(int*)GET_ADDRESS(0x10E5868, 0x838838, 0xE7ED60);

if (mainState == MS_DISPLAY_MAIN_MENU && !m_noWatermark.GetValue())
{
auto font = Font::GetMainFont();

#ifdef TR8
font->SetScale(0.7f, 0.7f);
#endif
font->SetCursor(5.f, 430.f);
font->Print("TRLAU-Menu-Hook");
}
#endif
}

void MainMenu::OnLoop()
Expand Down

0 comments on commit ac82ac3

Please sign in to comment.