mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-26 04:37:50 -05:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user