Scan direct calls to find functions.

This commit is contained in:
Skyth
2024-09-18 22:13:24 +03:00
parent 3cd6886825
commit 39a0b6ab4d
2 changed files with 71 additions and 54 deletions

View File

@@ -137,13 +137,6 @@ Function Function::Analyze(const void* code, size_t size, size_t base)
if (op == PPC_OP_B)
{
// Tail call, no need to chase
if (blocks.size() == 1)
{
RESTORE_DATA();
continue;
}
assert(!PPC_BA(instruction));
const auto branchDest = addr + PPC_BI(instruction);