diff options
author | bloodstalker <thabogre@gmail.com> | 2018-03-04 18:32:55 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-03-04 18:32:55 +0000 |
commit | e040ff88ba02058192f90503f6270d72fddd8d41 (patch) | |
tree | f738a9943416c1f75808c57cc6d67f2fc810ea5c /bruiser/bruiser.cpp | |
parent | wip-the lua syntax is not what i want to be yet and im having trouble with th... (diff) | |
download | mutator-e040ff88ba02058192f90503f6270d72fddd8d41.tar.gz mutator-e040ff88ba02058192f90503f6270d72fddd8d41.zip |
the jmp table is working now. you get member set and get methods, and an iterator. you can demo2 in the lua scripts folder for a test.
Diffstat (limited to 'bruiser/bruiser.cpp')
-rw-r--r-- | bruiser/bruiser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bruiser/bruiser.cpp b/bruiser/bruiser.cpp index ae7359a..8b00b5e 100644 --- a/bruiser/bruiser.cpp +++ b/bruiser/bruiser.cpp @@ -1602,10 +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); - JMP_S_T* head = makejmptable(size, code_v.data(), Verbose); - JMP_S_T* dummy = push_jmpt(__ls); - dummy = head; - dumpjmptable(dummy); + auto head = makejmptable(size, code_v.data(), Verbose, __ls); + jmpt_push_args(__ls, head); + new_jmpt_2(__ls); + dumpjmptable(head); return 1; } |