Fix Diabolik: The Original Sin crash

This commit orignal want fix #3326 by @unknownbrackets
This commit is contained in:
sum2012 2014-02-06 20:40:18 +08:00
parent b4db1e6941
commit 1c3adb42f2

View file

@ -170,8 +170,9 @@ bool ElfReader::LoadRelocations(Elf32_Rel *rels, int numRelocs)
case R_MIPS_16:
{
char temp[256];
op = (op & 0xFFFF0000) | (((int)(op & 0xFFFF) + (int)relocateTo) & 0xFFFF);
MIPSDisAsm(MIPSOpcode(op), 0, temp);
ERROR_LOG_REPORT(LOADER, "WARNING: Unsupported R_MIPS_16 reloc @ %08x : %s", addr, temp);
ERROR_LOG_REPORT(LOADER, "Testing: R_MIPS_16 reloc @ %08x : %s", addr, temp);
}
break;