Merge pull request #11714 from sepalani/check-wii-save-path

GameList: Check Wii save path
This commit is contained in:
Admiral H. Curtiss
2023-04-02 02:44:29 +02:00
committed by GitHub

View File

@ -694,7 +694,14 @@ void GameList::OpenWiiSaveFolder()
if (!game) if (!game)
return; 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); QDesktopServices::openUrl(url);
} }