diff options
| author | Sepalani <sepalani@hotmail.fr> | 2023-04-01 16:23:37 +0400 |
|---|---|---|
| committer | Sepalani <sepalani@hotmail.fr> | 2023-04-01 16:23:37 +0400 |
| commit | 9ee564dde36aa0ee491451559bf0e97749947c2b (patch) | |
| tree | 500896148df4e28f92eca8690f1fcf3d1f635390 /Source/Core | |
| parent | 7e9a63b9873d56f0a2c1b814a04437374621fb24 (diff) | |
GameList: Check Wii save path
Make the behaviour consistent with GC save
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/GameList/GameList.cpp | 9 |
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); } |
