From 04d38d89a516b6e67be3b603b3e3e1c32241d396 Mon Sep 17 00:00:00 2001 From: Shivam Dutt <shiv75035@gmail.com> Date: Tue, 28 May 2019 15:48:35 -0500 Subject: [PATCH] Changed the return type of get_int() to bool. If the return type is not bool, then Pokemon Trainer fails to load. --- source/acmd_wrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/acmd_wrapper.hpp b/source/acmd_wrapper.hpp index 96018cd..8f99379 100644 --- a/source/acmd_wrapper.hpp +++ b/source/acmd_wrapper.hpp @@ -75,7 +75,7 @@ namespace app::lua_bind { namespace WorkModule { float get_float(u64, int) asm("_ZN3app8lua_bind26WorkModule__get_float_implEPNS_26BattleObjectModuleAccessorEi") LINKABLE; - int get_int(u64, int) asm("_ZN3app8lua_bind24WorkModule__get_int_implEPNS_26BattleObjectModuleAccessorEi") LINKABLE; + bool get_int(u64, int) asm("_ZN3app8lua_bind24WorkModule__get_int_implEPNS_26BattleObjectModuleAccessorEi") LINKABLE; // this function must return a bool, otherwise Pokemon Trainer fails to load void inc_int(u64, int) asm("_ZN3app8lua_bind24WorkModule__inc_int_implEPNS_26BattleObjectModuleAccessorEi") LINKABLE; float get_param_float(u64, u64, u64) asm("_ZN3app8lua_bind32WorkModule__get_param_float_implEPNS_26BattleObjectModuleAccessorEmm") LINKABLE; int get_param_int(u64, u64, u64) asm("_ZN3app8lua_bind30WorkModule__get_param_int_implEPNS_26BattleObjectModuleAccessorEmm") LINKABLE;