System: Hash executable for game code when system.cnf missing

This commit is contained in:
Connor McLaughlin
2021-03-07 02:44:09 +10:00
parent ac4dd11fa0
commit 6bbb1128b6
4 changed files with 44 additions and 25 deletions

View File

@ -415,7 +415,7 @@ bool CommonHostInterface::ParseCommandLineParameters(int argc, char* argv[],
else
{
// find the game id, and get its save state path
std::string game_code = System::GetGameCodeForPath(boot_filename.c_str());
std::string game_code = System::GetGameCodeForPath(boot_filename.c_str(), true);
if (game_code.empty())
{
Log_WarningPrintf("Could not identify game code for '%s', cannot load save state %d.", boot_filename.c_str(),
@ -2867,7 +2867,7 @@ void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::str
else
{
if (image)
*code = System::GetGameCodeForImage(image);
*code = System::GetGameCodeForImage(image, true);
const GameListDatabaseEntry* db_entry = (!code->empty()) ? m_game_list->GetDatabaseEntryForCode(*code) : nullptr;
if (db_entry)