From 3641d8051967c6910ae826b772798f6613461424 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 10 May 2025 20:30:17 +0200 Subject: [PATCH 1/2] 'Update available' button should lead to openrct2.io --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/Changelog.cpp | 2 +- src/openrct2/Version.cpp | 3 +-- src/openrct2/Version.h | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index ea4ddcf0b7..171e838fc2 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.4.23 (in development) ------------------------------------------------------------------------ +- Improved: [#24368] Clicking the in-game update notication now leads to a more user-friendly download page. 0.4.22 (2025-05-04) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/Changelog.cpp b/src/openrct2-ui/windows/Changelog.cpp index 67716a3e8b..770c9ade75 100644 --- a/src/openrct2-ui/windows/Changelog.cpp +++ b/src/openrct2-ui/windows/Changelog.cpp @@ -165,7 +165,7 @@ namespace OpenRCT2::Ui::Windows case WIDX_OPEN_URL: if (_newVersionInfo != nullptr) { - GetContext()->GetUiContext()->OpenURL(_newVersionInfo->url); + GetContext()->GetUiContext()->OpenURL("https://openrct2.io/download/release"); } else { diff --git a/src/openrct2/Version.cpp b/src/openrct2/Version.cpp index 04c29c56a7..d88beed61b 100644 --- a/src/openrct2/Version.cpp +++ b/src/openrct2/Version.cpp @@ -70,7 +70,7 @@ NewVersionInfo GetLatestVersion() // If the check doesn't succeed, provide current version so we don't bother user // with invalid data. std::string tag = gVersionInfoTag; - NewVersionInfo verinfo{ tag, "", "", "" }; + NewVersionInfo verinfo{ tag, "", "" }; #if !defined(DISABLE_HTTP) && !defined(DISABLE_VERSION_CHECKER) auto now = std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count(); auto then = Config::Get().general.LastVersionCheckTime; @@ -100,7 +100,6 @@ NewVersionInfo GetLatestVersion() verinfo.tag = Json::GetString(root["tag_name"]); verinfo.name = Json::GetString(root["name"]); verinfo.changelog = Json::GetString(root["body"]); - verinfo.url = Json::GetString(root["html_url"]); Config::Get().general.LastVersionCheckTime = now; Config::Save(); diff --git a/src/openrct2/Version.h b/src/openrct2/Version.h index cfa77ac50b..ee1a046969 100644 --- a/src/openrct2/Version.h +++ b/src/openrct2/Version.h @@ -83,7 +83,6 @@ struct NewVersionInfo std::string tag; std::string name; std::string changelog; - std::string url; }; NewVersionInfo GetLatestVersion(); From 42adb068db7d0fb3b2ff8a5e6c9b55e0770bbca0 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 10 May 2025 23:11:13 +0200 Subject: [PATCH 2/2] Add missing issues to changelog --- distribution/changelog.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 171e838fc2..edbad41fe4 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,6 +1,9 @@ 0.4.23 (in development) ------------------------------------------------------------------------ - Improved: [#24368] Clicking the in-game update notication now leads to a more user-friendly download page. +- Change: [#24342] g2.dat is now split into g2.dat and fonts.dat. +- Fix: [#24346] Possible crash during line drawing in OpenGL mode. +- Fix: [#24353] ‘Show dirty visuals’ is off by one pixel and does not work correctly with higher framerates. 0.4.22 (2025-05-04) ------------------------------------------------------------------------