From 42f70f920e228480032e6e322df31915d99946f0 Mon Sep 17 00:00:00 2001 From: NovaRain Date: Tue, 21 Feb 2017 14:37:18 +0800 Subject: [PATCH] Removed unused code in LoadGame(). Revert the change of OverrideArtCacheSize. --- sfall/LoadGameHook.cpp | 5 ----- sfall/main.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sfall/LoadGameHook.cpp b/sfall/LoadGameHook.cpp index 29119304..42124cce 100644 --- a/sfall/LoadGameHook.cpp +++ b/sfall/LoadGameHook.cpp @@ -211,12 +211,7 @@ static void __declspec(naked) LoadGame() { push edx; or InLoop, LOADGAME; call LoadGame_; - /*push eax; - push 0x0000101f; - push 0x0045E949; - call SafeWrite32;*/ and InLoop, (-1^LOADGAME); - //pop eax; cmp eax, 1; jne end; call LoadGame2_After; diff --git a/sfall/main.cpp b/sfall/main.cpp index dc9b125d..ae4fa2f4 100644 --- a/sfall/main.cpp +++ b/sfall/main.cpp @@ -1237,7 +1237,7 @@ static void DllMain2() { if (GetPrivateProfileIntA("Misc", "OverrideArtCacheSize", 0, ini)) { dlog("Applying override art cache size patch.", DL_INIT); - SafeWrite8(0x41886A, 0x0); + SafeWrite32(0x418867, 0x90909090); SafeWrite32(0x418872, 256); dlogr(" Done", DL_INIT); }