Decompile fn_02980 (LuaScript::Register)

Batch #2982 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_02980 LuaScript::Register: 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).
This commit is contained in:
ragnarok-clanker 2026-10-29 21:06:40 +00:00
commit 518f2598f5
2 changed files with 7 additions and 0 deletions

View file

@ -738,3 +738,9 @@ 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);
}