Add midasm hook patching.

This commit is contained in:
Skyth
2024-10-06 18:54:47 +03:00
parent 1f5d7c32e8
commit 516e23f1f7
3 changed files with 110 additions and 0 deletions

View File

@@ -6,6 +6,12 @@ struct RecompilerSwitchTable
std::vector<uint32_t> labels;
};
struct RecompilerMidAsmHook
{
std::string name;
std::vector<std::string> registers;
};
struct RecompilerConfig
{
std::string directoryPath;
@@ -33,6 +39,7 @@ struct RecompilerConfig
uint32_t setJmpAddress = 0;
std::unordered_map<uint32_t, uint32_t> functions;
std::unordered_map<uint32_t, uint32_t> invalidInstructions;
std::unordered_map<uint32_t, RecompilerMidAsmHook> midAsmHooks;
void Load(const std::string_view& configFilePath);
};