From 312b52ecdad5ba56cd3bd0b3feabb374c727f730 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 29 Oct 2026 21:33:58 +0000 Subject: [PATCH] Decompile 3 functions in Source/Client/Session.h, Source/Contents/BodyResources.cpp, ... Batch #3351 by youko: 0 byte-identical, 3 confirmed by peer review. - fn_23915 CSession::SetHotkeySkillLevel: logic confirmed by peer review - fn_23940 CSession::IsPetAccessory: logic confirmed by peer review - fn_23949 EncryptedName<14,-3700222477>::EncryptedName<14,-3700222477>: logic confirmed by peer review Peer-reviewed-by: eAthena, meitogi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/BodyResources.cpp | 7 +++++++ Source/Contents/ClientTiming.cpp | 4 ++++ Source/Contents/PetStatus.cpp | 9 +++++++++ 3 files changed, 20 insertions(+) diff --git a/Source/Contents/BodyResources.cpp b/Source/Contents/BodyResources.cpp index 10f5e113..a82278b8 100644 --- a/Source/Contents/BodyResources.cpp +++ b/Source/Contents/BodyResources.cpp @@ -2930,6 +2930,13 @@ const char* EncryptedName<14, 0x0D7FA94DD32361A9ULL>::Text() { } // OFFSET: 0x00E281B0 +// FUNCTION: fn_23949 +template <> +EncryptedName<14, 0xB5F3F779237315F3ULL>::EncryptedName(const std::uint8_t (&source)[14]) : m_encrypted(true) { + for (std::uint64_t index = 0; index < 14; ++index) { + this->m_text[index] = source[index]; + } +} // OFFSET: 0x00E28390 // FUNCTION: fn_23950 diff --git a/Source/Contents/ClientTiming.cpp b/Source/Contents/ClientTiming.cpp index 5d8e82e4..a36285db 100644 --- a/Source/Contents/ClientTiming.cpp +++ b/Source/Contents/ClientTiming.cpp @@ -475,6 +475,10 @@ void CSession::SetHotkeyDescription(const char* description, std::uint32_t skill } // OFFSET: 0x00E26540 +// FUNCTION: fn_23915 +void CSession::SetHotkeySkillLevel(std::uint32_t skillLevel, int index) { + this->unknown_0420[index] = skillLevel; +} // OFFSET: 0x00E00320 // FUNCTION: fn_23639 diff --git a/Source/Contents/PetStatus.cpp b/Source/Contents/PetStatus.cpp index d745092f..5089bddc 100644 --- a/Source/Contents/PetStatus.cpp +++ b/Source/Contents/PetStatus.cpp @@ -126,3 +126,12 @@ int CSession::IsPetEgg(int itemId) const { } // OFFSET: 0x00E27780 +// FUNCTION: fn_23940 +bool CSession::IsPetAccessory(int itemId) { + bool isAccessory = false; + if (this->m_hotkeyScript->Call("IsPetAccessory", "d>b", itemId, &isAccessory)) { + return isAccessory; + } + + return false; +}