Merge pull request #11714 from sepalani/check-wii-save-path
GameList: Check Wii save path
This commit is contained in:
commit
aaeaa9c6b6
|
@ -694,7 +694,14 @@ void GameList::OpenWiiSaveFolder()
|
||||||
if (!game)
|
if (!game)
|
||||||
return;
|
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);
|
QDesktopServices::openUrl(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue