diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-10-22 14:55:08 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-10-22 14:55:08 +0200 |
commit | 3c098b80155a4b61134dc3b3de5bdbc08855fc2f (patch) | |
tree | bd904aa60a595736503827a4482159847be57cde /aoe2hd/include/CodeGenerator.h | |
parent | c2a2445897af17adb56a32dcf111312763a575d4 (diff) |
code refactoring #1
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'aoe2hd/include/CodeGenerator.h')
-rwxr-xr-x | aoe2hd/include/CodeGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/aoe2hd/include/CodeGenerator.h b/aoe2hd/include/CodeGenerator.h index e0649dd..2d97d86 100755 --- a/aoe2hd/include/CodeGenerator.h +++ b/aoe2hd/include/CodeGenerator.h @@ -21,6 +21,7 @@ public: } bool hasCode(int index); CodeGenerator& addCode(const std::vector<unsigned char>& code); + CodeGenerator& addCode(const std::string& code); CodeGenerator& setCode(int index, const std::vector<unsigned char>& code); CodeGenerator& setCodeSized(int index, const std::vector<unsigned char>& code); CodeGenerator& setRel32JMP(int index, unsigned long dst, unsigned long src, bool reversed = false); |