Last active
February 11, 2020 00:55
-
-
Save Pokechu22/50873be8439dc9706536debda0a10e39 to your computer and use it in GitHub Desktop.
Dolphin icache hack, works with scooby-doo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 91a7034f4aa034478f2b2e74d90653015a2e3daa Mon Sep 17 00:00:00 2001 | |
From: Pokechu22 <Pokechu022@gmail.com> | |
Date: Mon, 10 Feb 2020 16:52:10 -0800 | |
Subject: [PATCH] Hack to disable icache and always return memory contents | |
--- | |
Source/Core/Core/PowerPC/PPCCache.cpp | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/Source/Core/Core/PowerPC/PPCCache.cpp b/Source/Core/Core/PowerPC/PPCCache.cpp | |
index 80e74f5a5c..049cf1ac6b 100644 | |
--- a/Source/Core/Core/PowerPC/PPCCache.cpp | |
+++ b/Source/Core/Core/PowerPC/PPCCache.cpp | |
@@ -188,11 +188,11 @@ u32 InstructionCache::ReadInstruction(u32 addr) | |
u32 inmem = Memory::Read_U32(addr); | |
if (res != inmem) | |
{ | |
- INFO_LOG(POWERPC, "ICache read at %08x returned stale data: CACHED: %08x vs. RAM: %08x", addr, | |
+ INFO_LOG(POWERPC, "ICache read at %08x should have returned stale data: CACHED: %08x vs. RAM: %08x", addr, | |
res, inmem); | |
- DolphinAnalytics::Instance().ReportGameQuirk(GameQuirk::ICACHE_MATTERS); | |
+ //DolphinAnalytics::Instance().ReportGameQuirk(GameQuirk::ICACHE_MATTERS); | |
} | |
- return res; | |
+ return inmem; | |
} | |
void InstructionCache::DoState(PointerWrap& p) | |
-- | |
2.21.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment