Commits

spencercw committed b867ff8

#35 Fix detection of non-Game Boy Color games.

Comments (0)

Files changed (1)

gb_emulator/src/gb_memory.cpp

 			memset(vram, 0, VRAM_SIZE);
 
 			// Check if we are using a GBC ROM
-			if (0x143 < gb_.rom_.length() && !gb_.rom_[0x143])
+			if (0x143 < gb_.rom_.length() && !(gb_.rom_[0x143] & 0x80))
 				gb_.gbc_ = false;
 		}
 		break;