mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-22 21:17:14 +00:00
Fix import thunk resolving.
This commit is contained in:
@@ -1765,7 +1765,7 @@ bool Recompiler::Recompile(const Function& fn)
|
||||
if (insn.opcode == nullptr)
|
||||
{
|
||||
println("\t// {}", insn.op_str);
|
||||
#if 0
|
||||
#if 1
|
||||
if (*(data - 1) != 0)
|
||||
std::println("Unable to decode instruction {:X} at {:X}", *(data - 1), base - 4);
|
||||
#endif
|
||||
|
@@ -163,6 +163,11 @@ void SWARecompiler::Analyse()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (*(uint32_t*)data == 0x45564800)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
auto fnSymbol = image.symbols.find(base);
|
||||
if (fnSymbol != image.symbols.end() && fnSymbol->address == base && fnSymbol->type == Symbol_Function)
|
||||
{
|
||||
|
Reference in New Issue
Block a user