1
0
mirror of synced 2024-12-02 16:37:17 +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);