Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Commit

Permalink
Game DB: Updated to latest version of Nes20 DB
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed May 2, 2020
1 parent 7ab9b50 commit 9772aa0
Show file tree
Hide file tree
Showing 4 changed files with 3,319 additions and 400 deletions.
4 changes: 4 additions & 0 deletions Core/GameDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ void GameDatabase::SetGameInfo(uint32_t romCrc, RomData &romData, bool updateRom
case 'h': msg += "Horizontal"; break;
case 'v': msg += "Vertical"; break;
case '4': msg += "4 Screens"; break;
case '0': msg += "Screen A only"; break;
case '1': msg += "Screen B only"; break;
}
MessageManager::Log(msg);
}
Expand Down Expand Up @@ -335,6 +337,8 @@ void GameDatabase::UpdateRomData(GameInfo &info, RomData &romData)
case 'h': romData.Info.Mirroring = MirroringType::Horizontal; break;
case 'v': romData.Info.Mirroring = MirroringType::Vertical; break;
case '4': romData.Info.Mirroring = MirroringType::FourScreens; break;
case '0': romData.Info.Mirroring = MirroringType::ScreenAOnly; break;
case '1': romData.Info.Mirroring = MirroringType::ScreenBOnly; break;
}
}
}
15 changes: 10 additions & 5 deletions Core/UnRom512.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ class UnRom512 : public BaseMapper
SelectPRGPage(1, -1);

_enableMirroringBit = false;
switch(_romInfo.NesHeader.Byte6 & 0x09) {
case 0: SetMirroringType(MirroringType::Horizontal); break;
case 1: SetMirroringType(MirroringType::Vertical); break;
case 8: SetMirroringType(MirroringType::ScreenAOnly); _enableMirroringBit = true; break;
case 9: SetMirroringType(MirroringType::FourScreens); break;
if(GetMirroringType() == MirroringType::ScreenAOnly || GetMirroringType() == MirroringType::ScreenBOnly) {
SetMirroringType(MirroringType::ScreenAOnly);
_enableMirroringBit = true;
} else {
switch(_romInfo.NesHeader.Byte6 & 0x09) {
case 0: SetMirroringType(MirroringType::Horizontal); break;
case 1: SetMirroringType(MirroringType::Vertical); break;
case 8: SetMirroringType(MirroringType::ScreenAOnly); _enableMirroringBit = true; break;
case 9: SetMirroringType(MirroringType::FourScreens); break;
}
}

if(GetMirroringType() == MirroringType::FourScreens && _chrRam && _chrRamSize >= 0x8000) {
Expand Down
Loading

0 comments on commit 9772aa0

Please sign in to comment.