From 7658321752585beb05668257628bc2ec3ddc17ef Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 26 Mar 2020 21:38:15 +0100 Subject: replaced age2hd cheat with a actually working one.. or at least worked Signed-off-by: Toni Uhlig --- aoe2hd/include/CodeGenerator.h | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 aoe2hd/include/CodeGenerator.h (limited to 'aoe2hd/include/CodeGenerator.h') diff --git a/aoe2hd/include/CodeGenerator.h b/aoe2hd/include/CodeGenerator.h deleted file mode 100755 index 2d97d86..0000000 --- a/aoe2hd/include/CodeGenerator.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef CODEGENERATOR_H -#define CODEGENERATOR_H - -#include -#include - -#include "CodeInjector.h" - - -std::vector x86_relJump(unsigned long dst, - unsigned long src); - -class CodeGenerator -{ -public: - CodeGenerator(const native_data& nd); - virtual ~CodeGenerator(); - void clear() - { - codes.clear(); - } - bool hasCode(int index); - CodeGenerator& addCode(const std::vector& code); - CodeGenerator& addCode(const std::string& code); - CodeGenerator& setCode(int index, const std::vector& code); - CodeGenerator& setCodeSized(int index, const std::vector& code); - CodeGenerator& setRel32JMP(int index, unsigned long dst, unsigned long src, bool reversed = false); - std::vector::size_type buildSize(int maxCodes = -1); - std::vector build(); - std::vector buildAndClear(); - std::string toString(); -private: - const native_data& nd; - std::vector> codes; - unsigned long diffRel32JMP(bool reversed, int index = -1) - { - return (!reversed ? buildSize(index) - 0x5 : buildSize(index)); - } -}; - -#endif // CODEGENERATOR_H -- cgit v1.2.3