mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-07 04:01:07 -06:00
Moved callbacks to config.cpp, fixed Subtitles option not applying to stages (#400)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user