1
0
mirror of synced 2024-11-27 22:50:47 +01:00

Fix ghost squad

This commit is contained in:
Bobby Dilley 2024-03-09 21:47:51 +00:00
parent 2a6b2ecf80
commit e0c98d4e33
2 changed files with 12 additions and 3 deletions

View File

@ -282,7 +282,9 @@ static int detectGame(uint32_t elf_crc)
case GHOST_SQUAD_EVOLUTION:
{
config.gameTitle = "Ghost Squad Evolution";
config.gameStatus = NOT_WORKING;
config.gameStatus = WORKING;
config.gameDVP = "DVP-0029A";
config.gameID = "SBNJ";
return 0;
}
break;

View File

@ -133,6 +133,8 @@ int amDongleUserInfoEx(int a, int b, char *_arcadeContext)
memcpy(_arcadeContext, "SBPF", 4);
else if (getConfig()->crc32 == HUMMER_EXTREME)
memcpy(_arcadeContext, "SBST", 4);
else if (getConfig()->crc32 == GHOST_SQUAD_EVOLUTION)
memcpy(_arcadeContext, getConfig()->gameID, 4);
return 0;
}
@ -998,11 +1000,16 @@ int initPatch()
detourFunction(0x08183046, amDongleInit);
detourFunction(0x08181a91, amDongleIsAvailable);
detourFunction(0x081824f5, amDongleUpdate);
detourFunction(0x08181aae, amDongleIsDevelop);
detourFunction(0x08182f0d, amDongleUserInfoEx);
// Fixes
detourFunction(0x0818191d, amDipswGetData);
detourFunction(0x08181994, stubRetZero);
// patchMemory(0x807c9ec, "01");
// detourFunction(0x080f3f94, stubRetZero); //eliminates init_heap function.
patchMemory(0x080f37dd, "75");
patchMemory(0x080e7db2, "01");
patchMemory(0x0009FF41, "15");
patchMemory(0x080e7f5f, "B80100000090");
}
break;
case HUMMER_EXTREME: