From 48dc5167a2aa6d02d91589d554c4a3e61dfe089e Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 09:37:18 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Items/UIGradeEnchantWnd.cpp, Source/UI/AdventureGuide/UIAdventureGuide.cpp Batch #16835 by eAthena: 1 byte-identical, 1 confirmed by peer review. - fn_09753 UIGradeEnchantWnd::OnCreate: byte-identical - fn_14357 CUIAdventureGuide::MarkQuest: logic confirmed by peer review (already on main) Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/AdventureGuide/UIAdventureGuide.cpp | 9 ++++++++ Source/UI/Items/UIGradeEnchantWnd.cpp | 21 +++++++++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Source/UI/AdventureGuide/UIAdventureGuide.cpp b/Source/UI/AdventureGuide/UIAdventureGuide.cpp index a9d811aa3..5df15adea 100644 --- a/Source/UI/AdventureGuide/UIAdventureGuide.cpp +++ b/Source/UI/AdventureGuide/UIAdventureGuide.cpp @@ -29,6 +29,15 @@ #include #include +using StatusRequestTree = std::_Tree, std::allocator, false>>; +extern template std::_Tree_find_result*> +StatusRequestTree::_Find_lower_bound(const unsigned int&) const; +extern template AdventureGuide::CUIQuestInfo** std::allocator::allocate(std::size_t); +extern template void std::_List_node::_Free_non_head( + std::allocator>&, std::_List_node*) noexcept; +extern template void std::_List_node::_Free_non_head( + std::allocator>&, std::_List_node*) noexcept; + namespace { template diff --git a/Source/UI/Items/UIGradeEnchantWnd.cpp b/Source/UI/Items/UIGradeEnchantWnd.cpp index b0a2f2d71..e2e8deae2 100644 --- a/Source/UI/Items/UIGradeEnchantWnd.cpp +++ b/Source/UI/Items/UIGradeEnchantWnd.cpp @@ -178,8 +178,11 @@ void UIGradeEnchantWnd::OnCreate(int, int) { start->Resize(start->BitmapWidth(), start->BitmapHeight()); this->startButton->Move(0x23, 0x123); this->startButton->SetId(0xB8); - this->startButton->SetDisabled(0); - this->startButton->Invalidate(); + { + UIGradeEnchant_BtnStart* button = this->startButton; + button->SetDisabled(0); + button->Invalidate(); + } this->AddChild(this->startButton); UIGradeEnchant_BtnEnhancedUp* enhancedUp = new UIGradeEnchant_BtnEnhancedUp(); @@ -190,8 +193,11 @@ void UIGradeEnchantWnd::OnCreate(int, int) { enhancedUp->Resize(enhancedUp->BitmapWidth(), enhancedUp->BitmapHeight()); this->enhancedUpButton->Move(0x9E, 0xE1); this->enhancedUpButton->SetId(0x117); - this->enhancedUpButton->SetDisabled(0); - this->enhancedUpButton->Invalidate(); + { + UIGradeEnchant_BtnEnhancedUp* button = this->enhancedUpButton; + button->SetDisabled(0); + button->Invalidate(); + } this->AddChild(this->enhancedUpButton); UIGradeEnchant_BtnEnhancedDown* enhancedDown = new UIGradeEnchant_BtnEnhancedDown(); @@ -202,8 +208,11 @@ void UIGradeEnchantWnd::OnCreate(int, int) { enhancedDown->Resize(enhancedDown->BitmapWidth(), enhancedDown->BitmapHeight()); this->enhancedDownButton->Move(0x9E, 0xF0); this->enhancedDownButton->SetId(0x118); - this->enhancedDownButton->SetDisabled(0); - this->enhancedDownButton->Invalidate(); + { + UIGradeEnchant_BtnEnhancedDown* button = this->enhancedDownButton; + button->SetDisabled(0); + button->Invalidate(); + } this->AddChild(this->enhancedDownButton); auto* help = new UIBitmapButton();