From 1888e4e201d3d08f3128ab0eb98b96fa7f4d119f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 08:26:49 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/CashEmotion/CashEmotionMgr.cpp, Source/Script/LuaScript.cpp Batch #16763 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_02966 CCashEmotionMgr::LoadScripts: byte-identical (already on main) - fn_02980 LuaScript::Register: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/CashEmotion/CashEmotionMgr.cpp | 6 ++++++ Source/Script/LuaScript.cpp | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Contents/CashEmotion/CashEmotionMgr.cpp b/Source/Contents/CashEmotion/CashEmotionMgr.cpp index 4d428c255..2cdf52ed3 100644 --- a/Source/Contents/CashEmotion/CashEmotionMgr.cpp +++ b/Source/Contents/CashEmotion/CashEmotionMgr.cpp @@ -1390,6 +1390,12 @@ CashEmotionPackRefresh CCashEmotionMgr::RefreshUnownedPacks() { return {changed, nextTime}; } +// OFFSET: 0x0059CD60 +// FUNCTION: fn_02980 +void LuaScript::Register(std::string name, int (*function)(lua_State*)) { + lua_register(this->m_state, name.c_str(), function); +} + // OFFSET: 0x0059CDE0 // FUNCTION: fn_02981 void CCashEmotionMgr::SetServerTime(int param) { diff --git a/Source/Script/LuaScript.cpp b/Source/Script/LuaScript.cpp index 26635241d..5dadddc7d 100644 --- a/Source/Script/LuaScript.cpp +++ b/Source/Script/LuaScript.cpp @@ -1285,12 +1285,6 @@ int LuaScript::TableInteger(std::string table, int keyType, std::intptr_t key) { return value; } -// OFFSET: 0x0059CD60 -// FUNCTION: fn_02980 -void LuaScript::Register(std::string name, int (*function)(lua_State*)) { - lua_register(this->m_state, name.c_str(), function); -} - // OFFSET: 0x00A91200 // FUNCTION: fn_17157 int UIWindowMgr::GetHotkeyBehavior() {