aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/bruiser.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-03-02 20:40:16 +0000
committerbloodstalker <thabogre@gmail.com>2018-03-02 20:40:16 +0000
commit75fb62903425f19d0519c45a4c9ec7dc5f986f59 (patch)
tree0f748b8f446c803db9c4ee177d88ae2eba2a4b26 /bruiser/bruiser.cpp
parentsome fixes for the jump table lua module (diff)
downloadmutator-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.cpp6
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.*/