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
commit aaeaa9c6b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}