Add rambo patches
This commit is contained in:
parent
f827e352c2
commit
b34bfd642f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user