From 706ee282943209c6e818f122c30c132a3803df06 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sun, 23 Jun 2019 20:04:11 +0800 Subject: [PATCH] UNIF: Allow mirroring override (removes hard mirroring in vertical/horizontal modes) - A few multi-cart UNIF carts are incorrectly using vertical/horizontal mirroring but the mapper used has mapper-controlled mirroring which does not work when using previous hard-mirroring. - This PR allows overriding the initial mirroring set (vertical/horizontal) when cart requests a mirroring change for multi-cart games. --- src/unif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unif.c b/src/unif.c index 2ff053e..c969909 100644 --- a/src/unif.c +++ b/src/unif.c @@ -113,7 +113,8 @@ static uint8 exntar[2048]; static void MooMirroring(void) { if (mirrortodo < 0x4) - SetupCartMirroring(mirrortodo, 1, 0); + /* 06-22-19 Allow override when using vertical/horizontal mirroring. */ + SetupCartMirroring(mirrortodo, (mirrortodo >> 1) & 1, 0); else if (mirrortodo == 0x4) { SetupCartMirroring(4, 1, exntar); AddExState(exntar, 2048, 0, "EXNR");