diff options
author | bloodstalker <thabogre@gmail.com> | 2018-03-02 20:40:16 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-03-02 20:40:16 +0000 |
commit | 75fb62903425f19d0519c45a4c9ec7dc5f986f59 (patch) | |
tree | 0f748b8f446c803db9c4ee177d88ae2eba2a4b26 /bruiser/bruiser.cpp | |
parent | some fixes for the jump table lua module (diff) | |
download | mutator-75fb62903425f19d0519c45a4c9ec7dc5f986f59.tar.gz mutator-75fb62903425f19d0519c45a4c9ec7dc5f986f59.zip |
the skeletion code for the jump table struct is now working
Diffstat (limited to '')
-rw-r--r-- | bruiser/bruiser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp index 6056da8..b7db84a 100644 --- a/bruiser/bruiser.cpp +++ b/bruiser/bruiser.cpp @@ -229,6 +229,11 @@ class LuaEngine luaL_openlibs(LS); } + void registerJMPTable(void) { + jmpt_register(LS); + lua_pop(LS, 1); + } + void RunLuaDefaults(void) { luaL_dofile(LS, LuaDefault.c_str()); } @@ -2197,6 +2202,7 @@ int main(int argc, const char **argv) { LuaEngine LE; LE.LoadEverylib(); LE.RunLuaDefaults(); + LE.registerJMPTable(); *static_cast<LuaWrapper**>(lua_getextraspace(LE.GetLuaState())) = &LW; /*@DEVI-this part is just registering our LuaWrapper member functions with lua so we can call them from lua.*/ |