diff options
author | bloodstalker <thabogre@gmail.com> | 2018-03-04 14:33:19 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-03-04 14:33:19 +0000 |
commit | b85751a9544860eb711e722ca2f07efc034369e1 (patch) | |
tree | 6d64b2c55f40923655e87c36726e1602a82fb522 /bruiser/bruiser.cpp | |
parent | the skeletion code for the jump table struct is now working (diff) | |
download | mutator-b85751a9544860eb711e722ca2f07efc034369e1.tar.gz mutator-b85751a9544860eb711e722ca2f07efc034369e1.zip |
wip-the lua syntax is not what i want to be yet and im having trouble with the JMP_S_T pointers
Diffstat (limited to '')
-rw-r--r-- | bruiser/bruiser.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp index b7db84a..ae7359a 100644 --- a/bruiser/bruiser.cpp +++ b/bruiser/bruiser.cpp @@ -1602,9 +1602,10 @@ class LuaWrapper if (numargs != 2) {PRINT_WITH_COLOR_LB(RED, "expected exactly two args. did not get that.");return 0;} uint64_t size = lua_tointeger(__ls, 1); std::vector<uint8_t> code_v = getLuaTableInt<uint8_t>(__ls, 2, 2); - auto ptr = makejmptable(size, code_v.data()); - std::cout << RED << &ptr << NORMAL << "\n"; - lua_pushlightuserdata(__ls, ptr); + JMP_S_T* head = makejmptable(size, code_v.data(), Verbose); + JMP_S_T* dummy = push_jmpt(__ls); + dummy = head; + dumpjmptable(dummy); return 1; } |