Skip to content

Commit

Permalink
Fix clangformat
Browse files Browse the repository at this point in the history
  • Loading branch information
r41k0u committed Jan 20, 2024
1 parent 3462e2b commit 5430fa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ Byte MemoryMap::readMemory(Word address)
case MBC0:
return externalRam[address - 0xA000];
case MBC1:
if (enableRAM) {
if (enableRAM)
{
if (romRAMModeSelect && ((ramBankNumber * 0x2000) < ramSize))
return externalRam[address - 0xA000 + (ramBankNumber * 0x2000)];
else
Expand Down

0 comments on commit 5430fa5

Please sign in to comment.