mirror of https://github.com/PCSX2/pcsx2.git
If a game doesn't have a serial code (homebrew, demos, etc..), then pcsx2 will search for its crc in the database.
Note: In this case you will set Serial = crc in the database (this should only be done when the game doesn't have a real serial code) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3025 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
ed9b0a3715
commit
1d32141799
|
@ -349,10 +349,15 @@ static __forceinline void _reloadElfInfo(wxString elfpath)
|
|||
elfptr.Delete();
|
||||
|
||||
// Set the Game DataBase to the correct game based on Game Serial Code...
|
||||
if( GameDB )
|
||||
{
|
||||
GameDB->setGame(DiscID.ToUTF8().data());
|
||||
Console.WriteLn("Game = %s (%s)", GameDB->getString("Name").c_str(), GameDB->getString("Region").c_str());
|
||||
if (GameDB) {
|
||||
wxString gameSerial = DiscID;
|
||||
if (DiscID.IsEmpty()) { // Search for crc if no Serial Code
|
||||
gameSerial = wxString(wxsFormat( L"%8.8x", ElfCRC ));
|
||||
}
|
||||
if (GameDB->setGame(gameSerial.ToUTF8().data())) { // Game Found
|
||||
Console.WriteLn ("Game = %s (%s)", GameDB->getString("Name").c_str(), GameDB->getString("Region").c_str());
|
||||
}
|
||||
else Console.Warning("Game not found in database [%s]", gameSerial.ToAscii());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue