From 982813fb7e9a5436f14bb6c7f87775d5eedf0e82 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Thu, 6 Jul 2017 17:55:34 -0400 Subject: [PATCH] Update gambatte --- libgambatte/src/mem/cartridge.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libgambatte/src/mem/cartridge.cpp b/libgambatte/src/mem/cartridge.cpp index cf5c06afc1..34e6ea7408 100644 --- a/libgambatte/src/mem/cartridge.cpp +++ b/libgambatte/src/mem/cartridge.cpp @@ -629,7 +629,8 @@ int Cartridge::loadROM(const char *romfiledata, unsigned romfilelength, const ch break; } - cgb = header[0x0143] >> 7 & (1 ^ forceDmg); + //cgb = header[0x0143] >> 7 & (1 ^ forceDmg); + cgb = forceDmg ? false : true; std::printf("cgb: %d\n", cgb); }