mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-11 17:29:57 +00:00
Merge branch 'master' of https://github.com/MoleskiCoder/EightBit
This commit is contained in:
commit
6a065dd405
@ -114,7 +114,7 @@ void EightBit::GameBoy::Bus::validateCartridgeType() {
|
||||
default:
|
||||
if (romSizeSpecification > 6)
|
||||
throw std::domain_error("Invalid ROM size specification");
|
||||
gameRomBanks = 1i64 << (romSizeSpecification + 1);
|
||||
gameRomBanks = 1 << (romSizeSpecification + 1);
|
||||
if (gameRomBanks != m_gameRomBanks.size())
|
||||
throw std::domain_error("ROM size specification mismatch");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user