From 6daa943363afc588ccfda42bfd1477de52e4c71a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 22:13:19 +0000 Subject: [PATCH] Decompile 4 functions in Source/Contents/AdventureGuide/AdventureGuideMgr.cpp Batch #17383 by eAthena: 4 byte-identical, 0 confirmed by peer review. - fn_05242 CAdventureGuideMgr::InsertDungeonSubMenu: byte-identical - fn_05245 CAdventureGuideMgr::InsertEpisodeSubMenu: byte-identical - fn_05248 CAdventureGuideMgr::InsertEntrySubMenu: byte-identical - fn_05255 CAdventureGuideMgr::InsertQuestSubMenu: byte-identical Merged automatically: every function is byte-identical to the original. --- .../AdventureGuide/AdventureGuideMgr.cpp | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Source/Contents/AdventureGuide/AdventureGuideMgr.cpp b/Source/Contents/AdventureGuide/AdventureGuideMgr.cpp index a43dc9ffa..888cbab5e 100644 --- a/Source/Contents/AdventureGuide/AdventureGuideMgr.cpp +++ b/Source/Contents/AdventureGuide/AdventureGuideMgr.cpp @@ -1307,11 +1307,11 @@ AdventureGuideResult CAdventureGuideMgr::InsertDungeonSubMenu(int id, int minLev detail.maxLevel = maxLevel; detail.questId = 0; detail.text = text; - const auto it = std::find_if(m_intros.begin(), m_intros.end(), [](const auto& entry) { - return entry.second.type == 4; - }); - if (it != m_intros.end()) { - it->second.details.try_emplace(id, std::as_const(detail)); + for (auto it = m_intros.begin(); it != m_intros.end(); ++it) { + if (it->second.type == 4) { + it->second.details.try_emplace(id, std::as_const(detail)); + break; + } } return AdventureGuideResult(true, "good"); @@ -1353,11 +1353,11 @@ AdventureGuideResult CAdventureGuideMgr::InsertEpisodeSubMenu(int id, int minLev detail.maxLevel = maxLevel; detail.questId = questId; detail.text = text; - const auto it = std::find_if(m_intros.begin(), m_intros.end(), [](const auto& entry) { - return entry.second.type == 1; - }); - if (it != m_intros.end()) { - it->second.details.try_emplace(id, std::as_const(detail)); + for (auto it = m_intros.begin(); it != m_intros.end(); ++it) { + if (it->second.type == 1) { + it->second.details.try_emplace(id, std::as_const(detail)); + break; + } } return AdventureGuideResult(true, "good"); @@ -1421,11 +1421,11 @@ AdventureGuideResult CAdventureGuideMgr::InsertEntrySubMenu(int type, int id, in detail.maxLevel = maxLevel; detail.questId = 0; detail.text = text; - const auto it = std::find_if(m_intros.begin(), m_intros.end(), [type](const auto& entry) { - return entry.second.type == type; - }); - if (it != m_intros.end()) { - it->second.details.try_emplace(id, std::as_const(detail)); + for (auto it = m_intros.begin(); it != m_intros.end(); ++it) { + if (type == it->second.type) { + it->second.details.try_emplace(id, std::as_const(detail)); + break; + } } return AdventureGuideResult(true, "good"); @@ -1515,11 +1515,11 @@ AdventureGuideResult CAdventureGuideMgr::InsertQuestSubMenu(int id, int minLevel detail.maxLevel = maxLevel; detail.questId = 0; detail.text = text; - const auto it = std::find_if(m_intros.begin(), m_intros.end(), [](const auto& entry) { - return entry.second.type == 3; - }); - if (it != m_intros.end()) { - it->second.details.try_emplace(id, std::as_const(detail)); + for (auto it = m_intros.begin(); it != m_intros.end(); ++it) { + if (it->second.type == 3) { + it->second.details.try_emplace(id, std::as_const(detail)); + break; + } } return AdventureGuideResult(true, "good");