From 9ee564dde36aa0ee491451559bf0e97749947c2b Mon Sep 17 00:00:00 2001 From: Sepalani Date: Sat, 1 Apr 2023 16:23:37 +0400 Subject: [PATCH] GameList: Check Wii save path Make the behaviour consistent with GC save --- Source/Core/DolphinQt/GameList/GameList.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index 107addf802..c918c4555d 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -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); }