Decompile fn_01133 (CLuaInstance::SetGlobal)
Batch #3967 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_01133 CLuaInstance::SetGlobal: logic confirmed by peer review Peer-reviewed-by: youko, tayoba Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
23cec84c58
commit
ea2681102b
2 changed files with 3 additions and 3 deletions
|
|
@ -109,8 +109,8 @@ void CLuaInstance::SetGlobal(const std::string& name, bool value) {
|
|||
|
||||
// OFFSET: 0x005228B0
|
||||
// FUNCTION: fn_01133
|
||||
void CLuaInstance::SetGlobal(const std::string& name, int value) {
|
||||
lua_pushinteger(this->m_state, value);
|
||||
void CLuaInstance::SetGlobal(const std::string& name, lua_CFunction function) {
|
||||
lua_pushcfunction(this->m_state, function);
|
||||
lua_setglobal(this->m_state, name.c_str());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue