GameList: Check Wii save path

Make the behaviour consistent with GC save
This commit is contained in:
Sepalani 2023-04-01 16:23:37 +04:00
parent 7e9a63b987
commit 9ee564dde3

View File

@ -694,7 +694,14 @@ void GameList::OpenWiiSaveFolder()
if (!game)
return;
QUrl url = QUrl::fromLocalFile(QString::fromStdString(game->GetWiiFSPath()));
const std::string path = game->GetWiiFSPath();
if (!File::Exists(path))
{
ModalMessageBox::information(this, tr("Information"), tr("No save data found."));
return;
}
const QUrl url = QUrl::fromLocalFile(QString::fromStdString(path));
QDesktopServices::openUrl(url);
}