DiscIO: Add extra IsValid checks for VolumeWAD::m_tmd

Plus an IsValid check inside TMDReader::GetContents, which is called by
VolumeWAD.

Fixes https://bugs.dolphin-emu.org/issues/14032.
This commit is contained in:
JosJuice
2026-04-20 19:17:03 +02:00
parent 914f5c5621
commit 97fff931fd
2 changed files with 7 additions and 1 deletions

View File

@@ -230,11 +230,17 @@ IOS::ES::TicketReader VolumeWAD::GetTicketWithFixedCommonKey() const
std::string VolumeWAD::GetGameID(const Partition& partition) const
{
if (!m_tmd.IsValid())
return {};
return m_tmd.GetGameID();
}
std::string VolumeWAD::GetGameTDBID(const Partition& partition) const
{
if (!m_tmd.IsValid())
return {};
return m_tmd.GetGameTDBID();
}