ISOFile/GameFile: Correct GetWiiFSPath condition

This code was originally written when there only were three
possible types, but nowadays we also have the DOL/ELF type.
This commit is contained in:
JosJuice 2017-05-06 18:00:22 +02:00
parent ef4a1f0ec7
commit 55960f7feb
2 changed files with 2 additions and 2 deletions

View File

@ -336,7 +336,7 @@ bool GameFile::ExportWiiSave()
QString GameFile::GetWiiFSPath() const
{
_assert_(m_platform != DiscIO::Platform::GAMECUBE_DISC);
_assert_(m_platform == DiscIO::Platform::WII_DISC || m_platform == DiscIO::Platform::WII_WAD);
const std::string path = Common::GetTitleDataPath(m_title_id, Common::FROM_CONFIGURED_ROOT);

View File

@ -363,7 +363,7 @@ const std::string GameListItem::GetWiiFSPath() const
{
std::string ret;
if (m_Platform != DiscIO::Platform::GAMECUBE_DISC)
if (m_Platform == DiscIO::Platform::WII_DISC || m_Platform == DiscIO::Platform::WII_WAD)
{
const std::string path = Common::GetTitleDataPath(m_title_id, Common::FROM_CONFIGURED_ROOT);