summaryrefslogtreecommitdiff
path: root/aoe2hd/include/CodeGenerator.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-10-22 14:55:08 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-10-22 14:55:08 +0200
commit3c098b80155a4b61134dc3b3de5bdbc08855fc2f (patch)
treebd904aa60a595736503827a4482159847be57cde /aoe2hd/include/CodeGenerator.h
parentc2a2445897af17adb56a32dcf111312763a575d4 (diff)
code refactoring #1
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'aoe2hd/include/CodeGenerator.h')
-rwxr-xr-xaoe2hd/include/CodeGenerator.h1
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);