From a21c1a144c804bae6ccd9c7c581bd89612447297 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 3 Feb 2014 15:03:34 +0000 Subject: [PATCH] nes: mapper 218: minor code cleanup ( no changes ) --- .../Consoles/Nintendo/NES/Boards/Mapper218.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper218.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper218.cs index 881e1759c2..7083b258f1 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper218.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Mapper218.cs @@ -7,7 +7,7 @@ //configuration int prg_byte_mask; int chr_addr_mask; - + public override bool Configure(NES.EDetectionOrigin origin) { switch (Cart.board_type) @@ -49,7 +49,7 @@ // we need an ines identification for correct mirroring return false; } - prg_byte_mask = (Cart.prg_size*1024) - 1; + prg_byte_mask = (Cart.prg_size * 1024) - 1; return true; } @@ -64,20 +64,12 @@ public override byte ReadPPU(int addr) { - if (addr < 0x3f00) - return NES.CIRAM[TransformPPU(addr)]; - else - // palettes only - return base.ReadPPU(addr); + return NES.CIRAM[TransformPPU(addr)]; } public override void WritePPU(int addr, byte value) { - if (addr < 0x3f00) - NES.CIRAM[TransformPPU(addr)] = value; - else - // palettes only - base.WritePPU(addr, value); + NES.CIRAM[TransformPPU(addr)] = value; } public override byte ReadPRG(int addr)