mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 08:15:45 -04:00
System: Hash executable for game code when system.cnf missing
This commit is contained in:
@ -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)
|
||||
|
@ -181,7 +181,7 @@ bool GameList::GetM3UListEntry(const char* path, GameListEntry* entry)
|
||||
|
||||
if (entry->compatibility_rating == GameListCompatibilityRating::Unknown)
|
||||
{
|
||||
std::string code = System::GetGameCodeForImage(entry_image.get());
|
||||
std::string code = System::GetGameCodeForImage(entry_image.get(), true);
|
||||
const GameListCompatibilityEntry* compatibility_entry = GetCompatibilityEntryForCode(entry->code);
|
||||
if (compatibility_entry)
|
||||
entry->compatibility_rating = compatibility_entry->compatibility_rating;
|
||||
@ -206,7 +206,7 @@ bool GameList::GetGameListEntry(const std::string& path, GameListEntry* entry)
|
||||
if (!cdi)
|
||||
return false;
|
||||
|
||||
std::string code = System::GetGameCodeForImage(cdi.get());
|
||||
std::string code = System::GetGameCodeForImage(cdi.get(), true);
|
||||
DiscRegion region = System::GetRegionFromSystemArea(cdi.get());
|
||||
if (region == DiscRegion::Other)
|
||||
region = System::GetRegionForCode(code);
|
||||
|
Reference in New Issue
Block a user