Permalink
Browse files

Merge pull request #7504 from JosJuice/game-id-partition-none

Fix issue 11422 (inconsistent game ID for some hacked games)
  • Loading branch information...
lioncash committed Oct 25, 2018
2 parents 748b275 + 03d4011 commit 74c49c961ed4ade307b04f600536fed1f9b26ea4
Showing with 11 additions and 3 deletions.
  1. +11 −3 Source/Core/Core/ConfigManager.cpp
@@ -655,9 +655,17 @@ void SConfig::ResetRunningGameMetadata()
void SConfig::SetRunningGameMetadata(const DiscIO::Volume& volume,
const DiscIO::Partition& partition)
{
SetRunningGameMetadata(volume.GetGameID(partition), volume.GetTitleID(partition).value_or(0),
volume.GetRevision(partition).value_or(0),
Core::TitleDatabase::TitleType::Other);
if (partition == volume.GetGamePartition())
{
SetRunningGameMetadata(volume.GetGameID(), volume.GetTitleID().value_or(0),
volume.GetRevision().value_or(0), Core::TitleDatabase::TitleType::Other);
}
else
{
SetRunningGameMetadata(volume.GetGameID(partition), volume.GetTitleID(partition).value_or(0),
volume.GetRevision(partition).value_or(0),
Core::TitleDatabase::TitleType::Other);
}
}
void SConfig::SetRunningGameMetadata(const IOS::ES::TMDReader& tmd)

0 comments on commit 74c49c9

Please sign in to comment.