From 4353064eadc0ea77ad949f07c140e951fcb096fb Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 9 Apr 2012 20:12:28 +0000 Subject: [PATCH] fix mapper 115 for #3515357 (actually to fix mapper 248 for Bao Qing Tian) --- src/boards/mmc3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/boards/mmc3.cpp b/src/boards/mmc3.cpp index 24bd26de..f4de9d94 100644 --- a/src/boards/mmc3.cpp +++ b/src/boards/mmc3.cpp @@ -806,10 +806,10 @@ void Mapper114_Init(CartInfo *info) static void M115PW(uint32 A, uint8 V) { - if(EXPREGS[0]&0x80) - setprg32(0x8000,(EXPREGS[0]&7)>>1); - else - setprg8(A,V); + //zero 09-apr-2012 - #3515357 - changed to support Bao Qing Tian (mapper 248) which was missing BG gfx. 115 game(s?) seem still to work OK. + GENPWRAP(A,V); + if(A==0x8000 && EXPREGS[0]&0x80) + setprg16(0x8000,(EXPREGS[0]&0xF)); } static void M115CW(uint32 A, uint8 V)