From bd374ce3f97b2cc29ee6681fa84dca0877b11246 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 12:57:18 +0000 Subject: [PATCH] Decompile 4 functions in Source/UI/GameSettings/GameSettingsUI.cpp Batch #15192 by Yommy: 4 byte-identical, 0 confirmed by peer review. - fn_15966 GameSettingsUI::CUIGraphicsPage::IsModified: byte-identical - fn_16013 CUIGameSettingsUI::UpdateApplyButton: byte-identical - fn_17216 ToggleGameSettingsTab4: byte-identical (already on main) - fn_45466 CUIGameSettingsUI::SelectTab4: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/GameSettings/GameSettingsUI.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Source/UI/GameSettings/GameSettingsUI.cpp b/Source/UI/GameSettings/GameSettingsUI.cpp index ad3435e05..68d1c8ecb 100644 --- a/Source/UI/GameSettings/GameSettingsUI.cpp +++ b/Source/UI/GameSettings/GameSettingsUI.cpp @@ -1727,7 +1727,10 @@ bool CUIGraphicsPage::IsModified() { if (!graphics->m_mode.Matches(graphics->m_pendingMode)) { return true; } - return this->m_fullscreen->m_onButton->checked != (g_configuredFullscreen != 0); + if (this->m_fullscreen->m_onButton->checked != static_cast(g_configuredFullscreen)) { + return true; + } + return false; } // OFFSET: 0x00A40270 @@ -2017,21 +2020,17 @@ void SetNormalProcessPriority() { // OFFSET: 0x00A421E0 // FUNCTION: fn_16013 void CUIGameSettingsUI::UpdateApplyButton() { - bool visible = false; - if (this->m_tab->current && this->m_tab->current->geometry.id == 3) { - GameSettingsUI::CUIGraphicsPage* page = this->m_graphicsPage; - if (page->IsModified() || page->m_spriteDetailLevel->m_slider->position != g_effectDetailLevel || - page->m_textureDetailLevel->m_slider->position != g_textureDetailLevel || - page->m_trilinear->m_onButton->checked != (g_textureFiltering != 0)) { - visible = true; - } - } + GameSettingsUI::CUIGraphicsPage* page = this->m_graphicsPage; + const bool visible = this->m_tab->current && this->m_tab->current->geometry.id == 3 && + (page->IsModified() || page->m_spriteDetailLevel->m_slider->position != g_effectDetailLevel || + page->m_textureDetailLevel->m_slider->position != g_textureDetailLevel || + page->m_trilinear->m_onButton->checked != static_cast(g_textureFiltering)); this->m_applyButton->Show(visible); } // OFFSET: 0x00A41E10 // FUNCTION: fn_45466 -void CUIGameSettingsUI::SelectTab4() { +__declspec(noinline) void CUIGameSettingsUI::SelectTab4() { this->m_tab->Select(static_cast(this->m_tab->FindChildById(4))); }