Skip to content
Permalink
Browse files
Merge pull request #11714 from sepalani/check-wii-save-path
GameList: Check Wii save path
  • Loading branch information
AdmiralCurtiss committed Apr 2, 2023
2 parents 450ca0b + 9ee564d commit aaeaa9c
Showing 1 changed file with 8 additions and 1 deletion.
@@ -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);
}

0 comments on commit aaeaa9c

Please sign in to comment.