Merge pull request #199 from wheremyfoodat/wheremyfoodat-patch-3

Fix shut up counter
This commit is contained in:
wheremyfoodat
2023-08-18 18:43:28 +03:00
committed by GitHub

View File

@@ -154,6 +154,7 @@ u32 Memory::read32(u32 vaddr) {
if (vaddr >= VirtualAddrs::VramStart && vaddr < VirtualAddrs::VramStart + VirtualAddrs::VramSize) {
static int shutUpCounter = 0;
if (shutUpCounter < 5) { // Stop spamming about VRAM reads after the first 5
shutUpCounter++;
Helpers::warn("VRAM read!\n");
}