Skip to content

Commit c0e7d9f

Browse files
committed
NES: HD Packs - Fixed issues with some games (e.g MMC5) caused by unintended calls to ReadVram
1 parent e75f33a commit c0e7d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/NES/HdPacks/HdNesPpu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class HdNesPpu final : public NesPpu<HdNesPpu>
5858
_previousTileEx = _currentTileEx;
5959
_currentTileEx = _nextTileEx;
6060

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

6464
_nextTileEx.OffsetY = _videoRamAddr >> 12;

0 commit comments

Comments
 (0)