summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-04-02 02:44:29 +0200
committerGitHub <noreply@github.com>2023-04-02 02:44:29 +0200
commitaaeaa9c6b68b0e7fcea6afda50e0072202e8f0d2 (patch)
tree60b57b4e62f7662495c475e07e94748d0be4aec6 /Source
parent450ca0b69ea70f56e25670040f1dfdc01bf52ba9 (diff)
parent9ee564dde36aa0ee491451559bf0e97749947c2b (diff)
Merge pull request #11714 from sepalani/check-wii-save-path
GameList: Check Wii save path
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/GameList/GameList.cpp9
1 files changed, 8 insertions, 1 deletions
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);
}