Merge pull request #1954 from TiKevin83/master

GBA as GBC mode is only relevant on GBC
This commit is contained in:
adelikat 2020-04-27 16:49:57 -05:00 committed by GitHub
commit b3637c87fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public:
void ackIrq(unsigned bit, unsigned long cc);
unsigned readBios(unsigned p) {
if(agbMode_ && p >= 0xF3 && p < 0x100) {
if(isCgb() && agbMode_ && p >= 0xF3 && p < 0x100) {
return (agbOverride[p-0xF3] + bios_[p]) & 0xFF;
}
return bios_[p];

Binary file not shown.