cai567890 / pcsx2

Automatically exported from code.google.com/p/pcsx2
1 stars 0 forks source link

Fix Sacred Blaze rendering glitches #1406

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Index: GSCrc.cpp
===================================================================
--- GSCrc.cpp   (Version 5673)
+++ GSCrc.cpp   (Working Copy)
@@ -501,6 +501,7 @@
    {0xBDD9BAAD, UrbanReign, US, 0}, // cutie comment
    {0xAE4BEBD3, UrbanReign, EU, 0},
    {0x9F391882, SteambotChronicles, US, 0},
+   {0x06A7506A, SacredBlaze, JP, 0},
 };

 hash_map<uint32, CRC::Game*> CRC::m_map;
Index: GSCrc.h
===================================================================
--- GSCrc.h (Version 5673)
+++ GSCrc.h (Working Copy)
@@ -175,6 +175,7 @@
        UrbanReign,
        SteambotChronicles,
        TitleCount,
+       SacredBlaze,
    };

    enum Region
Index: GSState.cpp
===================================================================
--- GSState.cpp (Version 5673)
+++ GSState.cpp (Working Copy)
@@ -5101,6 +5101,19 @@
    return true;
 }

+bool GSC_SacredBlaze(const GSFrameInfo& fi, int& skip)
+{
+   //Fix Sacred Blaze rendering glitches
+       if(skip == 0)
+   {
+       if(fi.TME && (fi.FBP==0x0000 || fi.FBP==0x0e00) && (fi.TBP0==0x2880 || 
fi.TBP0==0x2a80 ) && fi.FPSM==fi.TPSM && fi.TPSM == PSM_PSMCT32 && fi.TPSM ==0 
&& fi.FBMSK == 0x0)
+       {
+           skip = 1;
+       }
+   }
+   return true;
+}
+
 #ifdef ENABLE_DYNAMIC_CRC_HACK

 #include <sys/stat.h>
@@ -5373,6 +5386,7 @@
        map[CRC::Simple2000Vol114] = GSC_Simple2000Vol114;
        map[CRC::UrbanReign] = GSC_UrbanReign;
        map[CRC::SteambotChronicles] = GSC_SteambotChronicles;
+       map[CRC::SacredBlaze] = GSC_SacredBlaze;
    }

    // TODO: just set gsc in SetGameCRC once

Original issue reported on code.google.com by yxml...@gmail.com on 16 Jun 2013 at 1:58

Attachments:

GoogleCodeExporter commented 9 years ago
Done.

Original comment by ramapcsx2.code on 23 Jul 2013 at 1:57