mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #1938 from CarlKenner/paddedfunctions
Skip zeroes that sometimes pad function to 16 byte boundary (eg. Donkey Kong Country Returns).
This commit is contained in:
commit
e7f2a04699
@ -313,6 +313,9 @@ static void FindFunctionsAfterBLR(PPCSymbolDB *func_db)
|
|||||||
{
|
{
|
||||||
while (true)
|
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)))
|
if (PPCTables::IsValidInstruction(Memory::Read_Instruction(location)))
|
||||||
{
|
{
|
||||||
//check if this function is already mapped
|
//check if this function is already mapped
|
||||||
|
Loading…
x
Reference in New Issue
Block a user