mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 01:49:33 -06:00
Skip zeroes that sometimes pad function to 16 byte boundary (eg. Donkey Kong Country Returns).
This fixes function detection in the debugger, and prevents functions showing up as four bytes inside another function.
This commit is contained in:
@ -313,6 +313,9 @@ static void FindFunctionsAfterBLR(PPCSymbolDB *func_db)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
// skip zeroes that sometimes pad function to 16 byte boundary (eg. Donkey Kong Country Returns)
|
||||
while (Memory::Read_Instruction(location) == 0 && ((location & 0xf) != 0))
|
||||
location += 4;
|
||||
if (PPCTables::IsValidInstruction(Memory::Read_Instruction(location)))
|
||||
{
|
||||
//check if this function is already mapped
|
||||
|
Reference in New Issue
Block a user