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:
Jonathan Li 2016-07-04 01:54:16 +01:00
parent e5ea4cc5d4
commit 9f53987e3b
2 changed files with 3 additions and 3 deletions

View File

@ -514,7 +514,7 @@ CRC::Game CRC::m_games[] =
{0x06A7506A, SacredBlaze, JP, 0}, {0x06A7506A, SacredBlaze, JP, 0},
}; };
hash_map<uint32, CRC::Game*> CRC::m_map; map<uint32, CRC::Game*> CRC::m_map;
string ToLower( string str ) string ToLower( string str )
{ {
@ -561,7 +561,7 @@ CRC::Game CRC::Lookup(uint32 crc)
printf("[FIXME] GSdx: Duplicate CRC: Overall: %d\n", crcDups); 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()) if(i != m_map.end())
{ {

View File

@ -211,7 +211,7 @@ public:
private: private:
static Game m_games[]; static Game m_games[];
static hash_map<uint32, Game*> m_map; static map<uint32, Game*> m_map;
public: public:
static Game Lookup(uint32 crc); static Game Lookup(uint32 crc);