From 1628ab154ec0c8c28a41c66414c2cd5ddc991eff Mon Sep 17 00:00:00 2001 From: avihal Date: Wed, 6 Jun 2012 20:38:24 +0000 Subject: [PATCH] Games DB: add support for controlling mvuFlagSpeedHack. Disabling this hack for all Katamari games (otherwise enabled by default now) since it has a weird speed bug with it enabled. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5272 96395faa-99c1-11dd-bbfe-3dabce05a288 --- bin/GameIndex.dbf | 16 ++++++++++++++++ pcsx2/gui/AppCoreThread.cpp | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/bin/GameIndex.dbf b/bin/GameIndex.dbf index 00ae3f18ee..055e3851a0 100644 --- a/bin/GameIndex.dbf +++ b/bin/GameIndex.dbf @@ -69,6 +69,11 @@ -- VIFFIFOHack = 1 // Transformers Armada, Test Drive Unlimited. Fixes slow booting issue. -- VIF1StallHack = 1 // SOCOM II. +--------------------------------------------- +-- Speed Hacks (SpeedHackName = ) +--------------------------------------------- +-- mvuFlagSpeedHack = 1 or 0 // Katamari Damacy have weird speed bug when this speed hack is enabled (and it is by default) + --------------------------------------------- -- Patches ([patches] or [patches = crc]) --------------------------------------------- @@ -6133,6 +6138,7 @@ Name = Katamari Damacy Region = NTSC-U Compat = 5 SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SLUS-21009 Name = Sega Classics Collection @@ -7163,6 +7169,7 @@ Name = We Love Katamari Region = NTSC-U Compat = 5 SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SLUS-21231 Name = Sniper Elite @@ -11304,6 +11311,7 @@ Serial = SCAJ-20079 Name = Katamari Damacy Region = NTSC-Unk SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SCAJ-20080 Name = Kaena @@ -11526,6 +11534,7 @@ Serial = SCAJ-20135 Name = Minna Daisuki Katamari Damacy Region = NTSC-Unk SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SCAJ-20136 Name = Ace Combat 5 - The Unsung War [PlayStation2 The Best] @@ -11933,6 +11942,7 @@ Serial = SCKA-20025 Name = Katamari Damacy Region = NTSC-K SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SCKA-20026 Name = Gungrave O.D. @@ -12014,6 +12024,7 @@ Serial = SCKA-20051 Name = Minna Daisuki Katamari Damacy Region = NTSC-K SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SCKA-20052 Name = Genji @@ -26932,6 +26943,7 @@ Name = Katamari Damacy Region = NTSC-J Compat = 5 SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SLPS-25361 Name = Smash Court Professional Tournament 2 @@ -29062,6 +29074,7 @@ Serial = SLPS-73210 Name = Katamari Damacy [PlayStation 2 The Best] Region = NTSC-J SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SLPS-73211 Name = Summon Night 3 [PlayStation 2 The Best] @@ -29176,11 +29189,13 @@ Serial = SLPS-73240 Name = Katamari Damacy [PlayStation 2 The Best] Region = NTSC-J SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SLPS-73241 Name = Minna Daisuki Katamari Damacy [PlayStation 2 The Best] Region = NTSC-J SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SLPS-73242 Name = Tales of Legendia [PlayStation 2 The Best] @@ -39205,6 +39220,7 @@ Serial = SLES-53828 Name = We Love Katamari Region = PAL-Unk SkipMPEGHack = 1 +mvuFlagSpeedHack = 0 --------------------------------------------- Serial = SLES-53829 Name = Raiden III diff --git a/pcsx2/gui/AppCoreThread.cpp b/pcsx2/gui/AppCoreThread.cpp index 218485240c..cf02c7e826 100644 --- a/pcsx2/gui/AppCoreThread.cpp +++ b/pcsx2/gui/AppCoreThread.cpp @@ -246,6 +246,14 @@ static int loadGameSettings(Pcsx2Config& dest, const Game_Data& game, bool verbo gf++; } + + if (game.keyExists("mvuFlagSpeedHack")) { + bool vuFlagHack = game.getInt("mvuFlagSpeedHack") ? 1 : 0; + if(verbose) Console.WriteLn("(GameDB) Changing mVU flag speed hack [mode=%d]", vuFlagHack); + dest.Speedhacks.vuFlagHack = vuFlagHack; + gf++; + } + for( GamefixId id=GamefixId_FIRST; id