NesHawk - CartInfo - turn into properties

This commit is contained in:
adelikat 2020-03-19 21:20:53 -05:00
parent daab35fc39
commit 22f6df3a70
241 changed files with 883 additions and 877 deletions

View File

@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "AVE-NINA-02": // untested
case "AVE-NINA-01": //Impossible Mission 2 (U)
@ -33,10 +33,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_4k = Cart.chr_size / 4 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_4k = Cart.ChrSize / 4 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}
@ -108,7 +108,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER079": // Puzzle (Unl)
isMapper79 = true;
@ -122,7 +122,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
case "AVE-NINA-06": //Blackjack (U)
case "AVE-NINA-03": //F-15 City War (U)
case "AVE-MB-91": //Deathbots (U)
if (Cart.chips.Count == 0) // some boards had no mapper chips on them
if (Cart.Chips.Count == 0) // some boards had no mapper chips on them
return false;
AssertPrg(32, 64); AssertChr(32, 64); AssertWram(0); AssertVram(0);
break;
@ -131,10 +131,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_8k = Cart.chr_size / 8 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_8k = Cart.ChrSize / 8 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
prg_bank_32k = 0;
return true;

View File

@ -17,11 +17,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER007":
bus_conflict = false;
Cart.vram_size = 8;
Cart.VramSize = 8;
break;
case "NES-ANROM": //marble madness
@ -57,7 +57,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_mask_32k = Cart.prg_size / 32 - 1;
prg_mask_32k = Cart.PrgSize / 32 - 1;
SetMirrorType(EMirrorType.OneScreenA);
return true;
@ -65,7 +65,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override byte ReadPrg(int addr)
{
if (Cart.prg_size == 16)
if (Cart.PrgSize == 16)
{
return Rom[(addr & 0x3FFF) | prg << 15];
}

View File

@ -68,7 +68,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
// see notes above that explain some of this in more detail
@ -92,7 +92,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
break;
case "MAPPER159": // [3]
AssertPrg(128, 256); AssertChr(128, 256);
Cart.wram_size = 0;
Cart.WramSize = 0;
regs_prg_enable = true;
regs_wram_enable = false;
eprom = new SEEPROM(false);
@ -104,7 +104,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
regs_wram_enable = false;
break;
case "MAPPER016": // [7]
if (Cart.prg_size > 256)
if (Cart.PrgSize > 256)
{
// you have two options:
// 1) assume prg > 256 => jump2 (aka mapper 153, type [5])
@ -115,7 +115,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
goto case "MAPPER153";
}
AssertPrg(128, 256); AssertChr(128, 256);
Cart.wram_size = 0;
Cart.WramSize = 0;
regs_prg_enable = true;
regs_wram_enable = true;
eprom = new SEEPROM(true);
@ -123,8 +123,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
case "MAPPER153": // [5]
AssertPrg(512);
AssertChr(0);
Cart.vram_size = 8;
Cart.wram_size = 8;
Cart.VramSize = 8;
Cart.WramSize = 8;
regs_prg_enable = true;
regs_wram_enable = false;
jump2 = true;
@ -145,8 +145,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
// bootgod doesn't have any of these recorded
AssertPrg(128, 256);
AssertChr(0);
Cart.vram_size = 8;
Cart.wram_size = 0;
Cart.VramSize = 8;
Cart.WramSize = 0;
regs_prg_enable = true;
regs_wram_enable = false;
// 24C02 is present on all boards
@ -160,13 +160,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_16k = (Cart.prg_size / 16) - 1;
prg_bank_mask_16k = (Cart.PrgSize / 16) - 1;
// for Jump2 boards, we only mask up to 256K, the outer bank is determined seperately
if (jump2)
prg_bank_mask_16k = 256 / 16 - 1;
chr_bank_mask_1k = Cart.chr_size - 1;
chr_bank_mask_1k = Cart.ChrSize - 1;
SetMirrorType(EMirrorType.Vertical);

View File

@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER096":
case "BANDAI-74*161/02/74":
@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
chr_block = 0;
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
return true;
}

View File

@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER070":
break;
@ -28,8 +28,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
default:
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_bank_mask_16k = (Cart.prg_size / 16) - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
prg_bank_mask_16k = (Cart.PrgSize / 16) - 1;
prg_banks_16k[1] = 0xFF;
return true;
}

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER216":
break;

View File

@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "AVE-NINA-07": // wally bear and the gang
// it's not the NINA_001 but something entirely different; actually a colordreams with VRAM
@ -39,10 +39,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_8k = Cart.chr_size / 8 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_8k = Cart.ChrSize / 8 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -27,7 +27,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER185":
case "HVC-CNROM+SECURITY":
@ -84,13 +84,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
default:
return false;
}
if (Cart.pcb == "9011-N02") // othello
if (Cart.Pcb == "9011-N02") // othello
copyprotection = true;
prg_byte_mask = Cart.prg_size * 1024 - 1;
chr_mask = (Cart.chr_size / 8) - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_byte_mask = Cart.PrgSize * 1024 - 1;
chr_mask = (Cart.ChrSize / 8) - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
if (Cart.sha1 == "sha1:4C9C05FAD6F6F33A92A27C2EDC1E7DE12D7F216D")
if (Cart.Sha1 == "sha1:4C9C05FAD6F6F33A92A27C2EDC1E7DE12D7F216D")
seicross = true;
return true;

View File

@ -12,13 +12,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER013":
AssertPrg(32);
AssertChr(0);
Cart.vram_size = 16;
Cart.wram_size = 0;
Cart.VramSize = 16;
Cart.WramSize = 0;
break;
case "NES-CPROM": //videomation

View File

@ -23,7 +23,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER071":
break;
@ -45,12 +45,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
prg_banks_16k[0] = 0x00;
prg_banks_16k[1] = 0xFF & prg_bank_mask_16k;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}
@ -107,7 +107,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER232":
break;
@ -119,9 +119,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
SyncPRG();

View File

@ -10,7 +10,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER104":
break;
@ -18,7 +18,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
regs[1] = 0xF;
SetMirrorType(EMirrorType.Vertical);

View File

@ -20,13 +20,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER083":
if (Cart.prg_size == 128)
if (Cart.PrgSize == 128)
{
prg_bank_mask_8k = Cart.prg_size / 8 - 1;
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
prg_bank_mask_8k = Cart.PrgSize / 8 - 1;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
chr_bank_mask_2k = 127;
//prg_regs[0] = 0xC;
//prg_regs[1] = 0xB;
@ -210,14 +210,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER083":
if (Cart.prg_size == 256)
if (Cart.PrgSize == 256)
{
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
prg_bank_mask_8k = Cart.prg_size / 8 - 1;
chr_bank_mask_2k = Cart.prg_size / 2 - 1;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
prg_bank_mask_8k = Cart.PrgSize / 8 - 1;
chr_bank_mask_2k = Cart.PrgSize / 2 - 1;
//prg_regs[1] = (byte)prg_bank_mask_16k;
//is_2k_bank = true;
@ -397,18 +397,18 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER083":
// We need one of the Cony boards to throw an error on an unexpected cart size, so we picked this one
if (Cart.prg_size != 128 && Cart.prg_size != 256 && Cart.prg_size != 1024)
if (Cart.PrgSize != 128 && Cart.PrgSize != 256 && Cart.PrgSize != 1024)
{
throw new InvalidOperationException("Unexpected prg size of " + Cart.prg_size + " for Mapper 83");
throw new InvalidOperationException("Unexpected prg size of " + Cart.PrgSize + " for Mapper 83");
}
if (Cart.prg_size == 1024)
if (Cart.PrgSize == 1024)
{
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
prg_regs[1] = (byte)prg_bank_mask_16k;
return true;

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "UNIF_COOLBOY":
AssertChr(0);
@ -25,8 +25,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
Cart.vram_size = 128;
Cart.wram_size = 0;
Cart.VramSize = 128;
Cart.WramSize = 0;
BaseSetup();

View File

@ -92,10 +92,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER005":
Cart.wram_size = 64;
Cart.WramSize = 64;
break;
case "NES-ELROM": //Castlevania 3 - Dracula's Curse (U)
case "HVC-ELROM":
@ -116,12 +116,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_8k = Cart.prg_size / 8 - 1;
prg_bank_mask_8k = Cart.PrgSize / 8 - 1;
if (Cart.chr_size > 0)
chr_bank_mask_1k = Cart.chr_size - 1;
if (Cart.ChrSize > 0)
chr_bank_mask_1k = Cart.ChrSize - 1;
else
chr_bank_mask_1k = Cart.vram_size - 1;
chr_bank_mask_1k = Cart.VramSize - 1;
PoweronState();
@ -169,7 +169,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
int? MaskWRAM(int bank)
{
bank &= 7;
switch (Cart.wram_size)
switch (Cart.WramSize)
{
case 0:
return null;

View File

@ -15,17 +15,17 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER006":
Cart.vram_size = 32;
Cart.VramSize = 32;
break;
default:
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
_prgMask16k = Cart.prg_size / 16 - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
_prgMask16k = Cart.PrgSize / 16 - 1;
return true;
}

View File

@ -18,7 +18,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER017":
break;
@ -26,8 +26,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_mask_8k = Cart.prg_size / 8 - 1;
chr_mask_1k = Cart.chr_size / 1 - 1;
prg_mask_8k = Cart.PrgSize / 8 - 1;
chr_mask_1k = Cart.ChrSize / 1 - 1;
//Initial State
prg_regs_8k[0] = 0x00;
@ -35,7 +35,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
prg_regs_8k[2] = 0xFE;
prg_regs_8k[3] = 0xFF;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -9,21 +9,21 @@
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "UNIF_UNL-FS304":
AssertChr(0);
AssertPrg(512, 1024, 2048, 4096);
Cart.vram_size = 8;
Cart.wram_size = 8;
Cart.wram_battery = true;
Cart.VramSize = 8;
Cart.WramSize = 8;
Cart.WramBattery = true;
break;
default:
return false;
}
prg_mask_32k = Cart.prg_size / 32 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_mask_32k = Cart.PrgSize / 32 - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -12,7 +12,7 @@
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "UNIF_FARID_UNROM_8-IN-1":
AssertPrg(1024);
@ -22,8 +22,8 @@
return false;
}
Cart.vram_size = 8;
SetMirrorType(Cart.pad_h, Cart.pad_v);
Cart.VramSize = 8;
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -31,7 +31,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "CAMERICA-GAMEGENIE":
break;
@ -41,8 +41,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
AssertChr(0); AssertPrg(4);
Cart.wram_size = 0;
Cart.vram_size = 0;
Cart.WramSize = 0;
Cart.VramSize = 0;
SetMirroring(0, 0, 0, 0);

View File

@ -25,7 +25,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER066":
AssertPrg(32, 64, 128); AssertChr(8, 16, 32, 64); AssertVram(0); AssertWram(0,8);
@ -38,16 +38,16 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
case "BANDAI-GNROM":
case "HVC-GNROM":
case "NES-MHROM": //Super Mario Bros. / Duck Hunt
AssertPrg(Cart.board_type == "NES-MHROM" ? 64 : 128); AssertChr(8, 16, 32); AssertVram(0); AssertWram(0);
AssertPrg(Cart.BoardType == "NES-MHROM" ? 64 : 128); AssertChr(8, 16, 32); AssertVram(0); AssertWram(0);
break;
default:
return false;
}
prg_mask = (Cart.prg_size / 32) - 1;
chr_mask = (Cart.chr_size / 8) - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_mask = (Cart.PrgSize / 32) - 1;
chr_mask = (Cart.ChrSize / 8) - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
if(origin == EDetectionOrigin.INES)
Console.WriteLine("Caution! This board (inferred from iNES) might have wrong mirr.type");

View File

@ -21,7 +21,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER011":
break;
@ -46,10 +46,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
AssertPrg(32, 64, 128);
AssertChr(8, 16, 32, 64, 128);
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_8k = Cart.chr_size / 8 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_8k = Cart.ChrSize / 8 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -13,10 +13,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER077":
Cart.vram_size = 8;
Cart.VramSize = 8;
break;
case "IREM-74*161/161/21/138":
AssertVram(8);

View File

@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER097":
break;
@ -22,8 +22,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
default:
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_bank_mask_16k = (Cart.prg_size / 16) - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
prg_bank_mask_16k = (Cart.PrgSize / 16) - 1;
prg_banks_16k[0] = 0xFF;
return true;
}

View File

@ -31,12 +31,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER032":
break;
case "IREM-G101":
if (Cart.pcb == "UNK-IF-13")
if (Cart.Pcb == "UNK-IF-13")
{
//special case for major league
oneScreenHack = true;
@ -47,8 +47,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask = Cart.prg_size / 8 - 1;
chr_bank_mask = Cart.chr_size - 1;
prg_bank_mask = Cart.PrgSize / 8 - 1;
chr_bank_mask = Cart.ChrSize - 1;
prg_regs_8k[0] = 0x00;
prg_regs_8k[1] = 0x01;

View File

@ -37,7 +37,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER065":
break;
@ -48,8 +48,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask = Cart.prg_size / 8 - 1;
chr_bank_mask = Cart.chr_size - 1;
prg_bank_mask = Cart.PrgSize / 8 - 1;
chr_bank_mask = Cart.ChrSize - 1;
prg_regs_8k[0] = 0x00;
prg_regs_8k[1] = 0x01;

View File

@ -22,13 +22,13 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER087":
AssertPrg(8, 16, 32);
AssertChr(8, 16, 32);
AssertVram(0);
Cart.wram_size = 0;
Cart.WramSize = 0;
break;
case "JALECO-JF-05":
case "JALECO-JF-06":
@ -43,9 +43,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
default:
return false;
}
prg_byte_mask = Cart.prg_size * 1024 - 1;
chr_mask_8k = Cart.chr_size / 8 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_byte_mask = Cart.PrgSize * 1024 - 1;
chr_mask_8k = Cart.ChrSize / 8 - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -21,7 +21,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER086":
break;
@ -31,10 +31,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_8k = Cart.chr_size / 8 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_8k = Cart.ChrSize / 8 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -28,7 +28,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER072":
break;
@ -38,10 +38,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_16k = (Cart.prg_size / 16) - 1;
chr_bank_mask_8k = (Cart.chr_size / 8) - 1;
prg_bank_mask_16k = (Cart.PrgSize / 16) - 1;
chr_bank_mask_8k = (Cart.ChrSize / 8) - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
prg_banks_16k[1] = 0xFF;
chr_banks_8k[0] = 0;

View File

@ -25,7 +25,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER092":
break;
@ -35,10 +35,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_16k = (Cart.prg_size / 16) - 1;
chr_bank_mask_8k = (Cart.chr_size / 8) - 1;
prg_bank_mask_16k = (Cart.PrgSize / 16) - 1;
chr_bank_mask_8k = (Cart.ChrSize / 8) - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
prg_banks_16k[0] = 0;
chr_banks_8k[0] = 0;

View File

@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER018":
case "JALECO-JF-23":
@ -34,8 +34,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
chr_bank_mask_1k = Cart.chr_size / 1 - 1;
prg_bank_mask_8k = Cart.prg_size / 8 - 1;
chr_bank_mask_1k = Cart.ChrSize / 1 - 1;
prg_bank_mask_8k = Cart.PrgSize / 8 - 1;
prg_banks_8k[3] = 0xFF;
// i have no idea what power-on defaults are supposed to be used

View File

@ -28,7 +28,7 @@ Other chips used: Sunsoft-1
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER140":
break;
@ -39,7 +39,7 @@ Other chips used: Sunsoft-1
default:
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -18,7 +18,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER228":
case "MLT-ACTION52":
@ -29,11 +29,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
AssertPrg(256, 1536);
chr_bank_mask_8k = Cart.chr_size / 8 - 1;
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_8k = Cart.ChrSize / 8 - 1;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
if (Cart.prg_size == 256)
if (Cart.PrgSize == 256)
{
cheetahmen = true;
}

View File

@ -18,7 +18,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
bool reg_0_locked = false;
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER234":
case "MLT-MAXI15":
@ -27,8 +27,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_8k = Cart.chr_size / 8 - 1;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_8k = Cart.ChrSize / 8 - 1;
return true;
}

View File

@ -17,16 +17,16 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "NES-HKROM":
AssertPrg(256); AssertChr(256); AssertVram(0); AssertWram(0,1);
Cart.wram_size = 1; //1K of wram is in the mmc6
Cart.wram_battery = true; //and its battery backed.
Cart.WramSize = 1; //1K of wram is in the mmc6
Cart.WramBattery = true; //and its battery backed.
break;
case "MAPPER004_MMC6":
Cart.wram_size = 1; //1K of wram is in the mmc6
Cart.wram_battery = true; //and its battery backed.
Cart.WramSize = 1; //1K of wram is in the mmc6
Cart.WramBattery = true; //and its battery backed.
break;
default:
return false;

View File

@ -64,10 +64,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{
MirrorMask = 1;
this.board = board;
if (board.Cart.chips.Contains("MMC3A")) MMC3Type = EMMC3Type.MMC3A;
else if (board.Cart.chips.Contains("MMC3B")) MMC3Type = EMMC3Type.MMC3BSharp;
else if (board.Cart.chips.Contains("MMC3BNONSHARP")) MMC3Type = EMMC3Type.MMC3BNonSharp;
else if (board.Cart.chips.Contains("MMC3C")) MMC3Type = EMMC3Type.MMC3C;
if (board.Cart.Chips.Contains("MMC3A")) MMC3Type = EMMC3Type.MMC3A;
else if (board.Cart.Chips.Contains("MMC3B")) MMC3Type = EMMC3Type.MMC3BSharp;
else if (board.Cart.Chips.Contains("MMC3BNONSHARP")) MMC3Type = EMMC3Type.MMC3BNonSharp;
else if (board.Cart.Chips.Contains("MMC3C")) MMC3Type = EMMC3Type.MMC3C;
else MMC3Type = EMMC3Type.MMC3C; //arbitrary choice. is it the best choice?
//initial values seem necessary
@ -388,10 +388,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
protected virtual void BaseSetup()
{
int num_prg_banks = Cart.prg_size / 8;
int num_prg_banks = Cart.PrgSize / 8;
prg_mask = num_prg_banks - 1;
int num_chr_banks = (Cart.chr_size);
int num_chr_banks = (Cart.ChrSize);
if (num_chr_banks == 0) // vram only board
num_chr_banks = 8;
chr_mask = num_chr_banks - 1;

View File

@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER012":
break;

View File

@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER037":
case "PAL-ZZ":

View File

@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public sealed override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER044":
break;

View File

@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER049":
break;

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER052":
break;

View File

@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER074":
break;
@ -24,7 +24,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
Vram = new byte[2048];
if (Cart.chr_size == 0 && Cart.board_type == "MAPPER074")
if (Cart.ChrSize == 0 && Cart.BoardType == "MAPPER074")
throw new Exception("Mapper074 carts MUST have chr rom!");
BaseSetup();
return true;

View File

@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER114":
break;
@ -24,7 +24,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
BaseSetup();
SetMirrorType(EMirrorType.Horizontal);
mmc3.MMC3Type = MMC3.EMMC3Type.MMC3A;
prg_mask_16 = Cart.prg_size / 16 - 1;
prg_mask_16 = Cart.PrgSize / 16 - 1;
return true;
}

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER115":
case "MAPPER248":

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER121":
break;

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER123": // Nestopia suggests this board is mapper 123, I do not have any ROMs with this ines header info to confirm
case "UNIF_UNL-H2288":

View File

@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER134":
break;

View File

@ -13,16 +13,16 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER165":
break;
default:
return false;
}
Cart.vram_size = 4;
Cart.VramSize = 4;
real_chr_mask = Cart.chr_size / 4 - 1;
real_chr_mask = Cart.ChrSize / 4 - 1;
BaseSetup();

View File

@ -5,7 +5,7 @@
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER182":
break;

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER187":
break;

View File

@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER189":
break;

View File

@ -7,7 +7,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER191":
break;
@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
//this board has 2k of chr ram
Cart.vram_size = 2;
Cart.VramSize = 2;
BaseSetup();
//theres a possibly bogus Q Boy rom using this mapper but I have no idea what emulator its supposed to boot in, for proof

View File

@ -7,7 +7,7 @@
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER192":
break;

View File

@ -7,7 +7,7 @@
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER194":
break;

View File

@ -6,7 +6,7 @@
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER195":
break;
@ -14,7 +14,7 @@
return false;
}
vram_bank_mask_1k = Cart.vram_size / 1 - 1;
vram_bank_mask_1k = Cart.VramSize / 1 - 1;
BaseSetup();
return true;

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER195_CW":
break;
@ -23,7 +23,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
vram_bank_mask_1k = Cart.vram_size / 1 - 1;
vram_bank_mask_1k = Cart.VramSize / 1 - 1;
BaseSetup();

View File

@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER196":
break;
@ -27,8 +27,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
Cart.wram_size = 0;
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
Cart.WramSize = 0;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
BaseSetup();
return true;
}

View File

@ -7,17 +7,17 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER197":
break;
default:
return false;
}
int num_prg_banks = Cart.prg_size / 8;
int num_prg_banks = Cart.PrgSize / 8;
prg_mask = num_prg_banks - 1;
int num_chr_banks = (Cart.chr_size);
int num_chr_banks = (Cart.ChrSize);
chr_mask = num_chr_banks - 1;
mmc3 = new Mapper197_MMC3(this, num_prg_banks);

View File

@ -4,7 +4,7 @@
{
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER198":
break;

View File

@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER199":
break;
@ -16,8 +16,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
exRegs[0] = (byte)(Cart.prg_size / 8 - 2);
exRegs[1] = (byte)(Cart.prg_size / 8 - 1);
exRegs[0] = (byte)(Cart.PrgSize / 8 - 2);
exRegs[1] = (byte)(Cart.PrgSize / 8 - 1);
exRegs[2] = 1;
exRegs[3] = 3;

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER205":
break;

View File

@ -27,7 +27,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER208":
break;

View File

@ -44,7 +44,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER215":
break;
@ -61,8 +61,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
exRegs[2] = 4;
exRegs[3] = 0;
prg_mask_8k = Cart.prg_size / 8 - 1;
chr_mask_1k = Cart.chr_size - 1;
prg_mask_8k = Cart.PrgSize / 8 - 1;
chr_mask_1k = Cart.ChrSize - 1;
prg_regs_8k[0] = 0;
prg_regs_8k[1] = 1;

View File

@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER217":
break;
@ -28,8 +28,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
exRegs[2] = 0x03;
exRegs[3] = 0x00;
prg_mask_8k = Cart.prg_size / 8 - 1;
chr_mask_1k = Cart.chr_size - 1;
prg_mask_8k = Cart.PrgSize / 8 - 1;
chr_mask_1k = Cart.ChrSize - 1;
prg_regs_8k[0] = 0;
prg_regs_8k[1] = 1;

View File

@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER219":
break;

View File

@ -5,7 +5,7 @@
{
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER223":
break;

View File

@ -10,7 +10,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER238":
case "UNIF_UNL-603-5052":

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER245":
AssertVram(8);

View File

@ -10,7 +10,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
// mmc3 with pirate crap bolt on
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER249":
break;
@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
AssertPrg(256, 512);
AssertChr(256);
Cart.wram_size = 8;
Cart.WramSize = 8;
BaseSetup();
return true;
}

View File

@ -7,7 +7,7 @@
{
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER250":
break;

View File

@ -8,7 +8,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER254":
break;

View File

@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER047": // Junk roms
break;

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "Pocahontas":
break;
@ -27,8 +27,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
exRegs[1] = 0;
exRegs[2] = 0;
prg_mask_8k = Cart.prg_size / 8 - 1;
chr_mask_1k = Cart.chr_size - 1;
prg_mask_8k = Cart.PrgSize / 8 - 1;
chr_mask_1k = Cart.ChrSize - 1;
prg_regs_8k[0] = 0;
prg_regs_8k[1] = 1;

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "UNIF_UNL-SL1632":
break;

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "NES-TLSROM": //pro sport hockey (U)
AssertPrg(128); AssertChr(128); AssertVram(0); AssertWram(0);
@ -30,7 +30,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
break;
case "MAPPER158":
// as above
AssertVram(0); Cart.wram_size = 0;
AssertVram(0); Cart.WramSize = 0;
break;
case "HVC-TLSROM":
AssertPrg(256); AssertChr(128); AssertVram(0); AssertWram(0);

View File

@ -7,10 +7,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER119":
Cart.vram_size = 8; Cart.wram_size = 0; // Junk ROMs get these wrong
Cart.VramSize = 8; Cart.WramSize = 0; // Junk ROMs get these wrong
break;
case "NES-TQROM": // High Speed and Pin Bot
AssertPrg(128); AssertChr(64); AssertVram(8); AssertWram(0);

View File

@ -5,12 +5,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER004":
if (Cart.inesmirroring != 2) // send these to TxROM
if (Cart.InesMirroring != 2) // send these to TxROM
return false;
Cart.vram_size = 8;
Cart.VramSize = 8;
break;

View File

@ -18,7 +18,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{
get
{
if (!Cart.wram_battery) return null;
if (!Cart.WramBattery) return null;
return Wram;
//some boards have a wram that is backed-up or not backed-up. need to handle that somehow
//(nestopia splits it into NVWRAM and WRAM but i didnt like that at first.. but it may player better with this architecture)
@ -28,7 +28,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//analyze board type
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER116_HACKY":
break;
@ -36,7 +36,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
case "TXROM-HOMEBREW": // should this even exist?
break;
case "MAPPER004":
if (Cart.inesmirroring == 2) // send these to TVROM
if (Cart.InesMirroring == 2) // send these to TVROM
return false;
break;
case "NES-TBROM": //tecmo world cup soccer (DE) [untested]
@ -98,8 +98,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
AssertBattery(false);
break;
case "UNIF_TSROM":
Cart.wram_size = 8;
Cart.wram_battery = false;
Cart.WramSize = 8;
Cart.WramBattery = false;
break;
case "ACCLAIM-MC-ACC": //alien 3 (U), bart simpson vs the world (U)
AssertPrg(128, 256); AssertChr(128, 256); AssertVram(0); AssertWram(0);

View File

@ -14,18 +14,18 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER015":
break;
default:
return false;
}
prg_bank_mask_8k = (Cart.prg_size / 8) - 1;
prg_bank_mask_8k = (Cart.PrgSize / 8) - 1;
// not a maskable size (BF=10111111)
// so just set mask to FF and hope for the best
if (Cart.prg_size==192)
if (Cart.PrgSize==192)
{
prg_bank_mask_8k = 0xFF;
}

View File

@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER028":
break;
@ -31,10 +31,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
AssertPrg(32, 64, 128, 256, 512, 1024, 2048);
AssertChr(0);
chr_mask_8k = Cart.chr_size / 8 - 1;
prg_mask_16k = Cart.prg_size / 16 - 1;
Cart.wram_size = 0;
Cart.vram_size = 32;
chr_mask_8k = Cart.ChrSize / 8 - 1;
prg_mask_16k = Cart.PrgSize / 16 - 1;
Cart.WramSize = 0;
Cart.VramSize = 32;
// the only part of initial state that is important is that
// C000:FFFF contains the tail end of the rom
outer = 63;

View File

@ -9,7 +9,7 @@
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "Mapper029":
case "UNIF_JERKFACE":
@ -21,9 +21,9 @@
SetMirrorType(EMirrorType.Vertical);
AssertChr(0);
AssertPrg(32, 64, 128, 256, 512, 1024);
Cart.wram_size = 8;
Cart.vram_size = 32;
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
Cart.WramSize = 8;
Cart.VramSize = 32;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
return true;
}

View File

@ -63,43 +63,43 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER030":
Cart.vram_size = 32;
Cart.VramSize = 32;
break;
case "MAPPER0030-00":
AssertVram(8, 16, 32);
break;
case "UNIF_UNROM-512-8":
Cart.vram_size = 8;
Cart.VramSize = 8;
break;
case "UNIF_UNROM-512-16":
Cart.vram_size = 16;
Cart.VramSize = 16;
break;
case "UNIF_UNROM-512-32":
Cart.vram_size = 32;
Cart.VramSize = 32;
break;
default:
return false;
}
if (Cart.wram_battery)
if (Cart.WramBattery)
{
flash_state = 0;
flash_mode = flashmode.fm_default;
if (flash_rom == null)
{
// extra space is used to hold information about what sectors have been flashed
flash_rom = new byte[Cart.prg_size * 1024 + Cart.prg_size];
flash_rom = new byte[Cart.PrgSize * 1024 + Cart.PrgSize];
}
}
SetMirrorType(CalculateMirrorType(Cart.pad_h, Cart.pad_v));
SetMirrorType(CalculateMirrorType(Cart.PadH, Cart.PadV));
AssertChr(0);
AssertPrg(128, 256, 512); //Flash chip sizes that fits sealie unrom-512 are 39SF010, 39SF020, 39SF040.
Cart.wram_size = 0;
prg_bank_mask_16k = Cart.prg_size / 16 - 1;
vram_bank_mask_8k = Cart.vram_size / 8 - 1;
Cart.WramSize = 0;
prg_bank_mask_16k = Cart.PrgSize / 16 - 1;
vram_bank_mask_8k = Cart.VramSize / 8 - 1;
return true;
}
@ -109,15 +109,15 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override void WritePrg(int addr, byte value)
{
if ((!Cart.wram_battery) || (addr >= 0x4000))
if ((!Cart.WramBattery) || (addr >= 0x4000))
{
byte value2 = value;
if (!Cart.wram_battery)
if (!Cart.WramBattery)
value2 = HandleNormalPRGConflict(addr, value);
chr = value2 >> 5 & 3 & vram_bank_mask_8k;
prg = value2 & prg_bank_mask_16k;
if ((Cart.pad_h == 0) && (Cart.pad_v == 0))
if ((Cart.PadH == 0) && (Cart.PadV == 0))
{
int mirror = (value2 & 0x80) >> 7;
SetMirrorType(CalculateMirrorType(mirror, mirror));
@ -152,16 +152,16 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{
if (value == 0x10) //You probably don't want to do this, as this is erase entire flash chip. :)
{ //Of course, we gotta emulate the behaviour.
for (int i = 0; i < (Cart.prg_size / 4); i++)
for (int i = 0; i < (Cart.PrgSize / 4); i++)
increment_flash_write_count(i, true);
for (int i = 0; i < flash_rom.Count(); i++)
flash_rom[Cart.prg_size + i] = 0xFF;
flash_rom[Cart.PrgSize + i] = 0xFF;
}
else if (value == 0x30)
{
increment_flash_write_count(addr);
for (int i = 0; i < 0x1000; i++)
flash_rom[(prg << 14 | addr & 0x3000) + i + Cart.prg_size] = 0xFF;
flash_rom[(prg << 14 | addr & 0x3000) + i + Cart.PrgSize] = 0xFF;
}
flash_mode = 0;
flash_state = 0;
@ -172,9 +172,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{
increment_flash_write_count(addr);
for (int i = 0; i < 0x1000; i++)
flash_rom[(prg << 14 | addr & 0x3000) + i + Cart.prg_size] = Rom[(prg << 14 | addr & 0x3000) + i];
flash_rom[(prg << 14 | addr & 0x3000) + i + Cart.PrgSize] = Rom[(prg << 14 | addr & 0x3000) + i];
}
flash_rom[Cart.prg_size + (prg << 14 | addr & 0x3fff)] &= value;
flash_rom[Cart.PrgSize + (prg << 14 | addr & 0x3fff)] &= value;
flash_state = 0;
flash_mode = 0;
}
@ -189,7 +189,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override byte ReadPrg(int addr)
{
int bank = addr >= 0x4000 ? prg_bank_mask_16k : prg;
if (Cart.wram_battery)
if (Cart.WramBattery)
{
if (flash_mode == flashmode.fm_id)
{
@ -198,7 +198,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
case 0:
return 0xBF;
case 1:
switch (Cart.prg_size)
switch (Cart.PrgSize)
{
case 128:
return 0xB5;
@ -213,7 +213,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
}
if (get_flash_write_count(addr) > 0)
return flash_rom[Cart.prg_size + (bank << 14 | addr & 0x3fff)];
return flash_rom[Cart.PrgSize + (bank << 14 | addr & 0x3fff)];
}
return Rom[bank << 14 | addr & 0x3fff];
}

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER034": // 3-D Battles of World Runner, The (U) [b5].nes
// TODO: No idea what to assert here
@ -25,11 +25,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
Cart.wram_size = 8;
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_4k = Cart.chr_size / 4 - 1;
Cart.WramSize = 8;
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_4k = Cart.ChrSize / 4 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
chr[1] = 1;
return true;

View File

@ -18,18 +18,18 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER036":
AssertVram(0);
Cart.wram_size = 0; // AssertWram(0); // GoodNES good dump of Strike Wolf specifies 8kb of wram
Cart.WramSize = 0; // AssertWram(0); // GoodNES good dump of Strike Wolf specifies 8kb of wram
break;
default:
return false;
}
chr_mask = Cart.chr_size / 8 - 1;
prg_mask = Cart.prg_size / 32 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
chr_mask = Cart.ChrSize / 8 - 1;
prg_mask = Cart.PrgSize / 32 - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
int prg, chr;
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER038":
case "UNL-PCI556":
@ -23,9 +23,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
AssertChr(32);
AssertVram(0);
AssertWram(0);
prg_mask = Cart.prg_size / 32 - 1;
chr_mask = Cart.chr_size / 8 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_mask = Cart.PrgSize / 32 - 1;
chr_mask = Cart.ChrSize / 8 - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER040":
AssertChr(8); AssertPrg(64); AssertVram(0); AssertWram(0);
@ -19,7 +19,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
default:
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -11,7 +11,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER041":
case "MLT-CALTRON6IN1":
@ -21,7 +21,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
AssertPrg(256);
AssertChr(128);
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER042":
break;
@ -23,7 +23,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
}
AssertPrg(128);
if (Cart.vram_size == 0)
if (Cart.VramSize == 0)
AssertChr(128);
else
{
@ -31,7 +31,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
AssertChr(0);
}
Cart.wram_size = 0;
Cart.WramSize = 0;
// not sure on initial mirroring
SetMirrorType(EMirrorType.Vertical);
return true;

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER043":
break;
@ -22,7 +22,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
Cart.wram_size = 0;
Cart.WramSize = 0;
// not sure on initial mirroring
SetMirrorType(EMirrorType.Vertical);
return true;

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER045":
case "UNIF_BMC-SuperHIK8in1":
@ -24,8 +24,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
chr_bank_mask_2k = Cart.chr_size / 2 - 1;
prg_bank_mask_8k = Cart.prg_size / 8 - 1;
chr_bank_mask_2k = Cart.ChrSize / 2 - 1;
prg_bank_mask_8k = Cart.PrgSize / 8 - 1;
BaseSetup();
return true;
}

View File

@ -54,7 +54,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER046":
break;
@ -62,9 +62,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
chr_bank_mask_8k = Cart.chr_size / 8 - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_bank_mask_32k = Cart.PrgSize / 32 - 1;
chr_bank_mask_8k = Cart.ChrSize / 8 - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
prg_bank_32k_H = 0;
prg_bank_32k_L = 0;

View File

@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER051":
break;
@ -17,7 +17,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -13,7 +13,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER053":
break;
@ -21,7 +21,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}
@ -92,7 +92,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "UNIF_BMC-Supervision16in1":
break;
@ -100,7 +100,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER057":
break;

View File

@ -12,7 +12,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER058":
break;

View File

@ -9,7 +9,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER063":
break;
@ -17,7 +17,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
Cart.wram_size = 0;
Cart.WramSize = 0;
// not sure on initial mirroring
SetMirrorType(EMirrorType.Vertical);

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "SUNSOFT-5B": //Gimmick! (J)
AssertPrg(256); AssertChr(128); AssertWram(0); AssertVram(0); AssertBattery(false);
@ -90,7 +90,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "NES-JLROM": // Mr Gimmick
AssertPrg(256); AssertChr(128); AssertWram(0); AssertVram(0); AssertBattery(false);
@ -120,9 +120,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
protected void BaseConfigure()
{
prg_bank_mask_8k = (Cart.prg_size / 8) - 1;
wram_bank_mask_8k = (Cart.wram_size / 8) - 1;
chr_bank_mask_1k = Cart.chr_size - 1;
prg_bank_mask_8k = (Cart.PrgSize / 8) - 1;
wram_bank_mask_8k = (Cart.WramSize / 8) - 1;
chr_bank_mask_1k = Cart.ChrSize - 1;
prg_banks_8k[3] = 0xFF;
SetMirrorType(EMirrorType.Vertical);
}

View File

@ -15,7 +15,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{
holydiver = false;
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER078":
break;
@ -28,8 +28,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
SetMirrorType(Cart.pad_h, Cart.pad_v);
prg_bank_mask_16k = (Cart.prg_size / 16) - 1;
SetMirrorType(Cart.PadH, Cart.PadV);
prg_bank_mask_16k = (Cart.PrgSize / 16) - 1;
prg_banks_16k[1] = 0xFF;
return true;
}

View File

@ -65,7 +65,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER035":
mapper_035 = true;
@ -86,11 +86,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
prg_bank_mask_8k = Cart.prg_size / 8 - 1;
chr_bank_mask_1k = Cart.chr_size - 1;
prg_bank_mask_8k = Cart.PrgSize / 8 - 1;
chr_bank_mask_1k = Cart.ChrSize - 1;
// Junk support
if (Cart.chr_size == 2040)
if (Cart.ChrSize == 2040)
{
chr_bank_mask_1k = 2047;
}

View File

@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER091":
break;
@ -24,21 +24,21 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
return false;
}
int chrSize = Cart.chr_size;
int chrSize = Cart.ChrSize;
if (chrSize > 256) // Hack to support some bad dumps
{
chrSize = 512;
}
chr_bank_mask_2k = chrSize / 2 - 1;
prg_bank_mask_8k = Cart.prg_size / 8 - 1;
prg_bank_mask_8k = Cart.PrgSize / 8 - 1;
prg_regs_8k[3] = 0xFF;
prg_regs_8k[2] = 0xFE;
mmc3 = new MMC3(this, 0x7FFFFFFF);
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

View File

@ -24,21 +24,21 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override bool Configure(EDetectionOrigin origin)
{
//configure
switch (Cart.board_type)
switch (Cart.BoardType)
{
case "MAPPER101":
AssertPrg(16, 32); AssertVram(0);
Cart.wram_size = 0;
Cart.wram_battery = false;
Cart.WramSize = 0;
Cart.WramBattery = false;
AssertChr(8, 16, 32, 64, 128, 256, 512, 1024, 2048);
break;
default:
return false;
}
chr_bank_mask_8k = (Cart.chr_size / 8) - 1;
chr_bank_mask_8k = (Cart.ChrSize / 8) - 1;
SetMirrorType(Cart.pad_h, Cart.pad_v);
SetMirrorType(Cart.PadH, Cart.PadV);
return true;
}

Some files were not shown because too many files have changed in this diff Show More