Skip to content

Commit 56f3a2d

Browse files
Remove FS304 class, fix Mapper162 with UNIF
FS304 is the same mapper as Mapper162, although it appears to be an earlier attempt at implementing it, with it being less complete than Mapper162 (and not even having savestate code implemented). It even having the same UNIF mapper string used seems to also make it so there's some "randomness" in terms of which class gets used for a UNIF ROM of this mapper (in my experience, 2.10 resulted in Mapper162 being used, while my own dev builds resulted in FS304 being used). UNIF configuration from FS304 is needed for it to be functional in Mapper162 however, so that was ported over.
1 parent 6248c93 commit 56f3a2d

File tree

2 files changed

+6
-55
lines changed

2 files changed

+6
-55
lines changed

src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/FS304.cs

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper162.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ public override bool Configure(EDetectionOrigin origin)
1212
switch (Cart.BoardType)
1313
{
1414
case "MAPPER162":
15+
break;
1516
case "UNIF_UNL-FS304":
17+
AssertChr(0);
18+
AssertPrg(512, 1024, 2048, 4096);
19+
Cart.VramSize = 8;
20+
Cart.WramSize = 8;
21+
Cart.WramBattery = true;
1622
break;
1723
default:
1824
return false;

0 commit comments

Comments
 (0)