Rename some cart info variables that indicates size (readability)

This commit is contained in:
negativeExponent
2020-02-16 22:15:25 +08:00
parent bbce95d5aa
commit d6143ef2ef
5 changed files with 26 additions and 26 deletions

View File

@@ -88,7 +88,7 @@ static void M226Reset(void) {
void Mapper226_Init(CartInfo *info) {
isresetbased = 0;
/* 1536KiB PRG roms have different bank order */
reorder_banks = ((info->prgRom * 16) == 1536) ? 1 : 0;
reorder_banks = ((info->PRGRomSize * 16) == 1536) ? 1 : 0;
info->Power = M226Power;
info->Reset = M226Reset;
AddExState(&StateRegs, ~0, 0, 0);

View File

@@ -217,9 +217,9 @@ void UNROM512_Init(CartInfo *info) {
flash_bank = 0;
flash_save = info->battery;
if (info->chrRam == 8192)
if (info->CHRRamSize == 8192)
chrram_mask = 0;
else if (info->chrRam == 16384)
else if (info->CHRRamSize == 16384)
chrram_mask = 0x20;
else
chrram_mask = 0x60;
@@ -236,7 +236,7 @@ void UNROM512_Init(CartInfo *info) {
SetupCartMirroring(MI_0, 0, NULL);
break;
case 3: /* hard four screen, last 8k of 32k RAM (flags: 4-screen + vertical) */
SetupCartMirroring(4, 1, VROM + (info->chrRam - 8192));
SetupCartMirroring(4, 1, VROM + (info->CHRRamSize - 8192));
break;
}
bus_conflict = !info->battery;