Remove hardcoded recompiler, load TOML file for configuration.

This commit is contained in:
Skyth
2024-10-01 00:09:18 +03:00
parent 54cb41c4db
commit 183027d563
11 changed files with 309 additions and 308 deletions

View File

@@ -40,6 +40,13 @@ size_t Function::SearchBlock(size_t address) const
Function Function::Analyze(const void* code, size_t size, size_t base)
{
Function fn{ base, 0 };
if (*((uint32_t*)code + 1) == 0x04000048) // shifted ptr tail call
{
fn.size = 0x8;
return fn;
}
auto& blocks = fn.blocks;
blocks.reserve(8);
blocks.emplace_back();