mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 19:14:18 +01:00
GSdx: Add an Enumeration for CRC Hack level
This commit is contained in:
1 parent
726f9d5312
commit
ff89619b09
8 files changed
+22
-14
No files matched your search
@@ -23,7 +23,6 @@
|
||||
#include "GSState.h"
|
||||
#include "GSdx.h"
|
||||
|
||||
extern int g_crc_hack_level;
|
||||
|
||||
//#define Offset_ST // Fixes Persona3 mini map alignment which is off even in software rendering
|
||||
|
||||
@@ -79,7 +78,7 @@ GSState::GSState()
|
||||
//s_savel = 0;
|
||||
|
||||
UserHacks_WildHack = theApp.GetConfigB("UserHacks") ? theApp.GetConfigI("UserHacks_WildHack") : 0;
|
||||
m_crc_hack_level = theApp.GetConfigI("crc_hack_level");
|
||||
m_crc_hack_level = static_cast<CRCHackLevel>(theApp.GetConfigI("crc_hack_level"));
|
||||
|
||||
memset(&m_v, 0, sizeof(m_v));
|
||||
memset(&m_vertex, 0, sizeof(m_vertex));
|
||||
@@ -2519,7 +2518,7 @@ void GSState::SetGameCRC(uint32 crc, int options)
|
||||
{
|
||||
m_crc = crc;
|
||||
m_options = options;
|
||||
m_game = CRC::Lookup(m_crc_hack_level ? crc : 0);
|
||||
m_game = CRC::Lookup(m_crc_hack_level != CRCHackLevel::None ? crc : 0);
|
||||
SetupCrcHack();
|
||||
|
||||
// Until we find a solution that work for all games.
|
||||
|
||||
Reference in new issue
Block a user