mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Remove hardcoded recompiler, load TOML file for configuration.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user