From 71cc0baf0e05b3d679b8a7b0f273939f9936a881 Mon Sep 17 00:00:00 2001 From: CaH4e3 Date: Tue, 23 Oct 2012 09:24:40 +0000 Subject: [PATCH] mapper 115 - regression fix --- 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 d8e5358f..45c2f5bf 100644 --- a/src/boards/mmc3.cpp +++ b/src/boards/mmc3.cpp @@ -819,10 +819,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)