Moved callbacks to config.cpp, fixed Subtitles option not applying to stages (#400)

This commit is contained in:
Hyper
2025-02-13 17:30:12 +00:00
committed by GitHub
parent 431a6d9841
commit 414ccb3637
9 changed files with 62 additions and 86 deletions

View File

@@ -28,7 +28,7 @@ void App::Exit()
std::_Exit(0);
}
// SWA::CApplication
// SWA::CApplication::CApplication
PPC_FUNC_IMPL(__imp__sub_824EB490);
PPC_FUNC(sub_824EB490)
{
@@ -75,6 +75,10 @@ PPC_FUNC(sub_822C1130)
AudioPatches::Update(App::s_deltaTime);
InspirePatches::Update();
// Apply subtitles option.
if (auto pApplicationDocument = SWA::CApplicationDocument::GetInstance())
pApplicationDocument->m_InspireSubtitles = Config::Subtitles;
__imp__sub_822C1130(ctx, base);
}