Skip to content

Commit

Permalink
GameList: Check Wii save path
Browse files Browse the repository at this point in the history
Make the behaviour consistent with GC save
  • Loading branch information
sepalani committed Apr 1, 2023
1 parent 7e9a63b commit 9ee564d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/Core/DolphinQt/GameList/GameList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9ee564d

Please sign in to comment.