Skip to content

Commit

Permalink
NES: HD Packs - Fixed issues with some games (e.g MMC5) caused by uni…
Browse files Browse the repository at this point in the history
…ntended calls to ReadVram
  • Loading branch information
SourMesen committed Nov 22, 2023
1 parent e75f33a commit c0e7d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/NES/HdPacks/HdNesPpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class HdNesPpu final : public NesPpu<HdNesPpu>
_previousTileEx = _currentTileEx;
_currentTileEx = _nextTileEx;

uint8_t tileIndex = ReadVram(GetNameTableAddr());
uint8_t tileIndex = _mapper->DebugReadVram(GetNameTableAddr());
uint16_t tileAddr = (tileIndex << 4) | (_videoRamAddr >> 12) | _control.BackgroundPatternAddr;

_nextTileEx.OffsetY = _videoRamAddr >> 12;
Expand Down

0 comments on commit c0e7d9f

Please sign in to comment.