Merge pull request #7504 from JosJuice/game-id-partition-none
Fix issue 11422 (inconsistent game ID for some hacked games)
This commit is contained in:
commit
74c49c961e
|
@ -655,9 +655,17 @@ void SConfig::ResetRunningGameMetadata()
|
||||||
void SConfig::SetRunningGameMetadata(const DiscIO::Volume& volume,
|
void SConfig::SetRunningGameMetadata(const DiscIO::Volume& volume,
|
||||||
const DiscIO::Partition& partition)
|
const DiscIO::Partition& partition)
|
||||||
{
|
{
|
||||||
SetRunningGameMetadata(volume.GetGameID(partition), volume.GetTitleID(partition).value_or(0),
|
if (partition == volume.GetGamePartition())
|
||||||
volume.GetRevision(partition).value_or(0),
|
{
|
||||||
Core::TitleDatabase::TitleType::Other);
|
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)
|
void SConfig::SetRunningGameMetadata(const IOS::ES::TMDReader& tmd)
|
||||||
|
|
Loading…
Reference in New Issue