From 7106909d3fa7cccfb9da5c3198eca77f3a0255fe Mon Sep 17 00:00:00 2001 From: Akash Date: Fri, 30 Sep 2016 17:13:39 +0530 Subject: [PATCH] PCSX2: Avoid enabling VuClipFlag at some scenarios VuClipFlag hack is only used for SuperVU1 Recompiler, let's avoid enabling it when it's not used. Previously a console message would be provided stating that "(GameDB) Enabled Gamefix: VuClipFlagHack" even when the user is using the Interpreter (or) MicroVU Recompiler. The following patch prevents such confusions. --- pcsx2/gui/AppCoreThread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/gui/AppCoreThread.cpp b/pcsx2/gui/AppCoreThread.cpp index 64ff0eecf7..ea0319973b 100644 --- a/pcsx2/gui/AppCoreThread.cpp +++ b/pcsx2/gui/AppCoreThread.cpp @@ -277,6 +277,10 @@ static int loadGameSettings(Pcsx2Config& dest, const Game_Data& game) { if (game.keyExists(key)) { + // VuClipFlag hack is only used by the SuperVu1 Recompiler. + if (id == Fix_VuClipFlag && (!g_Conf->EmuOptions.Cpu.Recompiler.EnableVU1 || g_Conf->EmuOptions.Cpu.Recompiler.UseMicroVU1)) + continue; + bool enableIt = game.getBool(key); dest.Gamefixes.Set(id, enableIt); PatchesCon->WriteLn(L"(GameDB) %s Gamefix: " + key, enableIt ? L"Enabled" : L"Disabled");