mirror of https://github.com/PCSX2/pcsx2.git
gsdx: Use map for GSCRC::m_map
Visual Studio 2015 initialises unordered_map using vector instructions, which can cause PCSX2 to crash if the instructions aren't supported.
This commit is contained in:
parent
e5ea4cc5d4
commit
9f53987e3b
|
@ -514,7 +514,7 @@ CRC::Game CRC::m_games[] =
|
|||
{0x06A7506A, SacredBlaze, JP, 0},
|
||||
};
|
||||
|
||||
hash_map<uint32, CRC::Game*> CRC::m_map;
|
||||
map<uint32, CRC::Game*> CRC::m_map;
|
||||
|
||||
string ToLower( string str )
|
||||
{
|
||||
|
@ -561,7 +561,7 @@ CRC::Game CRC::Lookup(uint32 crc)
|
|||
printf("[FIXME] GSdx: Duplicate CRC: Overall: %d\n", crcDups);
|
||||
}
|
||||
|
||||
hash_map<uint32, Game*>::iterator i = m_map.find(crc);
|
||||
auto i = m_map.find(crc);
|
||||
|
||||
if(i != m_map.end())
|
||||
{
|
||||
|
|
|
@ -211,7 +211,7 @@ public:
|
|||
|
||||
private:
|
||||
static Game m_games[];
|
||||
static hash_map<uint32, Game*> m_map;
|
||||
static map<uint32, Game*> m_map;
|
||||
|
||||
public:
|
||||
static Game Lookup(uint32 crc);
|
||||
|
|
Loading…
Reference in New Issue