real fix this time ?

This commit is contained in:
Missake212 2025-03-29 15:17:54 +00:00
parent 8122f8ecbf
commit aadaabc001

View File

@ -140,12 +140,12 @@ public:
QString open_update_path; QString open_update_path;
Common::FS::PathToQString(open_update_path, m_games[itemID].path); Common::FS::PathToQString(open_update_path, m_games[itemID].path);
open_update_path += "-UPDATE"; open_update_path += "-UPDATE";
if (!std::filesystem::exists(Common::FS::PathFromQString(open_update_path))) { if (std::filesystem::exists(Common::FS::PathFromQString(open_update_path))) {
QDesktopServices::openUrl(QUrl::fromLocalFile(open_update_path)); QDesktopServices::openUrl(QUrl::fromLocalFile(open_update_path));
} else { } else {
Common::FS::PathToQString(open_update_path, m_games[itemID].path); Common::FS::PathToQString(open_update_path, m_games[itemID].path);
open_update_path += "-patch"; open_update_path += "-patch";
if (!std::filesystem::exists(Common::FS::PathFromQString(open_update_path))) { if (std::filesystem::exists(Common::FS::PathFromQString(open_update_path))) {
QDesktopServices::openUrl(QUrl::fromLocalFile(open_update_path)); QDesktopServices::openUrl(QUrl::fromLocalFile(open_update_path));
} else { } else {
QMessageBox::critical(nullptr, tr("Error"), QMessageBox::critical(nullptr, tr("Error"),