Decompile fn_01128 (CLuaInstance::Execute)
Batch #984 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_01128 CLuaInstance::Execute: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
d54f050f5b
commit
0bb3ea5e00
1 changed files with 5 additions and 3 deletions
|
|
@ -9,6 +9,10 @@ extern "C" {
|
|||
#include <cstring>
|
||||
#include <windows.h>
|
||||
|
||||
// STATIC: 0x010D9630
|
||||
// STRING: st_00223
|
||||
static const char luaErrorCaption[] = "Lua Error";
|
||||
|
||||
// OFFSET: 0x005221E0
|
||||
// FUNCTION: fn_01123
|
||||
CLuaInstance::CLuaInstance() : m_state(luaL_newstate()) {
|
||||
|
|
@ -36,10 +40,8 @@ bool CLuaInstance::Execute(const std::string& name) {
|
|||
return true;
|
||||
}
|
||||
|
||||
// STATIC: 0x010D9630
|
||||
// STRING: st_00223
|
||||
const char* error = lua_tostring(this->m_state, -1);
|
||||
MessageBoxA(nullptr, error, "Lua Error", MB_OK);
|
||||
MessageBoxA(nullptr, error, luaErrorCaption, MB_OK);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue