1
0
mirror of synced 2024-11-27 19:10:48 +01:00

Add rambo patches

This commit is contained in:
Bobby Dilley 2024-02-21 23:24:33 +00:00
parent f827e352c2
commit b34bfd642f

View File

@ -125,7 +125,9 @@ int amDongleUpdate()
int amDongleUserInfoEx(int a, int b, char *_arcadeContext) int amDongleUserInfoEx(int a, int b, char *_arcadeContext)
{ {
if (getConfig()->crc32 == INITIALD_4_REVE) if (getConfig()->crc32 == RAMBO)
memcpy(_arcadeContext, "SBQL", 4);
else if (getConfig()->crc32 == INITIALD_4_REVE)
memcpy(_arcadeContext, "SBNK", 4); memcpy(_arcadeContext, "SBNK", 4);
else if (getConfig()->crc32 == INITIALD_5_EXP_20) else if (getConfig()->crc32 == INITIALD_5_EXP_20)
memcpy(_arcadeContext, "SBPF", 4); memcpy(_arcadeContext, "SBPF", 4);
@ -930,6 +932,10 @@ int initPatch()
detourFunction(0x082c4746, amDongleInit); detourFunction(0x082c4746, amDongleInit);
detourFunction(0x082c3201, amDongleIsAvailable); detourFunction(0x082c3201, amDongleIsAvailable);
detourFunction(0x082c3bf7, amDongleUpdate); detourFunction(0x082c3bf7, amDongleUpdate);
detourFunction(0x082c460d, amDongleUserInfoEx);
detourFunction(0x082c321e, amDongleIsDevelop);
detourFunction(0x080e4262, stubRetZero);
detourFunction(0x080e3e94, stubRetZero);
// Fixes // Fixes
detourFunction(0x082c308d, amDipswGetData); detourFunction(0x082c308d, amDipswGetData);
detourFunction(0x082c3103, amDipswSetLed); detourFunction(0x082c3103, amDipswSetLed);
@ -964,16 +970,16 @@ int initPatch()
detourFunction(0x081400b5, amDipswGetData); detourFunction(0x081400b5, amDipswGetData);
detourFunction(0x0814012c, stubRetZero); detourFunction(0x0814012c, stubRetZero);
patchMemory(0x08052cb2, "9090909090"); patchMemory(0x08052cb2, "9090909090");
//patchMemory(0x0805206a, "00"); // patchMemory(0x0805206a, "00");
// test // test
// patchMemory(0x0804d8be, "909090909090909090909090909090"); // patchMemory(0x0804d8be, "909090909090909090909090909090");
// patchMemory(0x0804e5cf, "909090909090909090909090909090"); // patchMemory(0x0804e5cf, "909090909090909090909090909090");
// Res // Res
// setVariable(0x0805af8b, 0x00000438); // setVariable(0x0805af8b, 0x00000438);
// setVariable(0x0805af93, 0x000003c0); // setVariable(0x0805af93, 0x000003c0);
// setVariable(0x0805afa2, 0x000003c0); // setVariable(0x0805afa2, 0x000003c0);
// setVariable(0x0805b0ed, 0x00000438); // setVariable(0x0805b0ed, 0x00000438);
// setVariable(0x0805aff5, 0x000003c0); // setVariable(0x0805aff5, 0x000003c0);
} }
break; break;
case GHOST_SQUAD_EVOLUTION: case GHOST_SQUAD_EVOLUTION: