Take NES 2.0 header WRAM size into account for MMC3

This commit is contained in:
Alexey Cluster 2024-05-28 14:03:27 +04:00
parent ffb28e1131
commit 14df08d804
1 changed files with 4 additions and 2 deletions

View File

@ -363,8 +363,10 @@ static void M4Power(void) {
void Mapper4_Init(CartInfo *info) { void Mapper4_Init(CartInfo *info) {
int ws = 8; int ws = 8;
if ((info->CRC32 == 0x93991433 || info->CRC32 == 0xaf65aa84)) { if (info->ines2) {
FCEU_printf("Low-G-Man can not work normally in the iNES format.\nThis game has been recognized by its CRC32 value, and the appropriate changes will be made so it will run.\nIf you wish to hack this game, you should use the UNIF format for your hack.\n\n"); ws = (info->wram_size + info->battery_wram_size) / 1024;
} else if ((info->CRC32 == 0x93991433 || info->CRC32 == 0xaf65aa84)) {
FCEU_printf("Low-G-Man can not work normally in the iNES format.\nThis game has been recognized by its CRC32 value, and the appropriate changes will be made so it will run.\nIf you wish to hack this game, you should use the NES 2.0 format for your hack.\n\n");
ws = 0; ws = 0;
} }
GenMMC3_Init(info, 512, 256, ws, info->battery); GenMMC3_Init(info, 512, 256, ws, info->battery);