From 39c35d44301d5d6751e9c3e4a8efa8037e5d1338 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Mon, 7 Nov 2022 21:34:02 +0000 Subject: [PATCH] Updater: Check for [SAVEVERSION+] etc before clearing out most of the message. --- pcsx2-qt/AutoUpdaterDialog.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pcsx2-qt/AutoUpdaterDialog.cpp b/pcsx2-qt/AutoUpdaterDialog.cpp index f162e1b629..10f1ade9ad 100644 --- a/pcsx2-qt/AutoUpdaterDialog.cpp +++ b/pcsx2-qt/AutoUpdaterDialog.cpp @@ -331,6 +331,13 @@ void AutoUpdaterDialog::getChangesComplete(QNetworkReply* reply) QString message = commit_obj["message"].toString(); QString author = commit_obj["author"].toObject()["name"].toString(); + + if (message.contains(QStringLiteral("[SAVEVERSION+]"))) + update_will_break_save_states = true; + + if (message.contains(QStringLiteral("[SETTINGSVERSION+]"))) + update_increases_settings_version = true; + const int first_line_terminator = message.indexOf('\n'); if (first_line_terminator >= 0) message.remove(first_line_terminator, message.size() - first_line_terminator); @@ -339,12 +346,6 @@ void AutoUpdaterDialog::getChangesComplete(QNetworkReply* reply) changes_html += QStringLiteral("
  • %1 (%2)
  • ").arg(message.toHtmlEscaped()).arg(author.toHtmlEscaped()); } - - if (message.contains(QStringLiteral("[SAVEVERSION+]"))) - update_will_break_save_states = true; - - if (message.contains(QStringLiteral("[SETTINGSVERSION+]"))) - update_increases_settings_version = true; } changes_html += "";