mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
Protection now works for ecax.
This commit is contained in:
parent
416fead447
commit
6c71ec28af
|
@ -604,7 +604,7 @@ UINT32 CModel3::ReadSecurity(unsigned reg)
|
||||||
data = (vs298Security[securityPtr++] << 16);
|
data = (vs298Security[securityPtr++] << 16);
|
||||||
securityPtr %= (sizeof(vs298Security)/sizeof(UINT16));
|
securityPtr %= (sizeof(vs298Security)/sizeof(UINT16));
|
||||||
}
|
}
|
||||||
else if (!strcmp(Game->id, "eca"))
|
else if (!strcmp(Game->id, "eca") || !strcmp(Game->id, "ecax"))
|
||||||
{
|
{
|
||||||
data = (ecaSecurity[securityPtr++] << 16);
|
data = (ecaSecurity[securityPtr++] << 16);
|
||||||
securityPtr %= (sizeof(ecaSecurity)/sizeof(UINT16));
|
securityPtr %= (sizeof(ecaSecurity)/sizeof(UINT16));
|
||||||
|
@ -2101,7 +2101,7 @@ void CModel3::RunMainBoardFrame(void)
|
||||||
{
|
{
|
||||||
// Run the PowerPC for a frame
|
// Run the PowerPC for a frame
|
||||||
ppc_execute(ppcFrequency/60-10000);
|
ppc_execute(ppcFrequency/60-10000);
|
||||||
printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
//printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
||||||
|
|
||||||
// VBlank
|
// VBlank
|
||||||
TileGen.BeginFrame();
|
TileGen.BeginFrame();
|
||||||
|
@ -2109,7 +2109,7 @@ printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
||||||
GPU.RenderFrame();
|
GPU.RenderFrame();
|
||||||
IRQ.Assert(0x02);
|
IRQ.Assert(0x02);
|
||||||
ppc_execute(10000); // TO-DO: Vblank probably needs to be longer. Maybe that's why some games run too fast/slow
|
ppc_execute(10000); // TO-DO: Vblank probably needs to be longer. Maybe that's why some games run too fast/slow
|
||||||
printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
//printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sound:
|
* Sound:
|
||||||
|
@ -2144,7 +2144,7 @@ printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//printf("\t-- END --\n");
|
//printf("\t-- END --\n");
|
||||||
printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
//printf("PC=%08X LR=%08X\n", ppc_get_pc(), ppc_get_lr());
|
||||||
|
|
||||||
// End frame
|
// End frame
|
||||||
GPU.EndFrame();
|
GPU.EndFrame();
|
||||||
|
|
Loading…
Reference in a new issue