From e9db88de78a42bed3ef91b2c36f8414e104f44a8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 07:49:11 +0000 Subject: [PATCH] Decompile 2 functions in Source/Client/Mode/GameModeHandlers.cpp Batch #14231 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_22022 CGameMode::HandleRuneResult: logic confirmed by peer review - fn_21997 CGameMode::ReceiveDdukddakBoxTest: logic confirmed by peer review Peer-reviewed-by: secret, KWDev, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/GameModeHandlers.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Client/Mode/GameModeHandlers.cpp b/Source/Client/Mode/GameModeHandlers.cpp index 8f4c1d9c6..02a8259cf 100644 --- a/Source/Client/Mode/GameModeHandlers.cpp +++ b/Source/Client/Mode/GameModeHandlers.cpp @@ -2034,8 +2034,6 @@ int CGameMode::HandleRuneResult(int result) { g_windowMgr.SendNotice(1, reinterpret_cast(LookupMessage(0xFFE)), 0xFF, 0, 0, 0); g_windowMgr.Confirm(LookupMessage(0xFFE), 0, true, false, 0, "Message", 280, 120, 0); break; - default: - return result; } return result; @@ -2441,7 +2439,7 @@ void CGameMode::ReceiveDdukddakBoxTest(const unsigned char* packet) { std::string folder = "DdukddakBoxTest"; std::string fileName = FormatOwnedString("%d%02d%02d_(%s).txt", time.wYear, time.wMonth, time.wDay, name); std::string path = FormatOwnedString("%s\\%s\\%s", g_applicationDirectory, folder.c_str(), fileName.c_str()); - path = CreateUniqueFileName(path); + path = static_cast(CreateUniqueFileName(path)); std::ofstream output(path.c_str()); output << FormatOwnedString("%s\t%s\t%s\t%s\n\n", "ID", "name", "count", "property");