From f5acd2ba243719340fc293bf342029429580390c Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 24 Jun 2025 01:00:41 +0200 Subject: [PATCH] Fix: `convert` console command rejects files with an SV7 extension --- distribution/changelog.txt | 1 + src/openrct2/rct2/S6Importer.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 147c8de8c6..c8aeff8ce9 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -22,6 +22,7 @@ - Fix: [#24617] ‘Divide by zero’ error when updating boat hire acceleration. - Fix: [#24626] Viewports that only follow sprites (e.g. in the Ride and Guest windows) can be made to unfollow them. - Fix: [#24661] `convert` console command always crashes with a segmentation fault. +- Fix: [#24666] `convert` console command rejects files with an SV7 extension. 0.4.23 (2025-06-07) ------------------------------------------------------------------------ diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 923a1bcafc..bcc19d661c 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -128,7 +128,7 @@ namespace OpenRCT2::RCT2 { return LoadScenario(path, skipObjectCheck); } - if (String::iequals(extension, ".sv6")) + if (String::iequals(extension, ".sv6") || String::iequals(extension, ".sv7")) { return LoadSavedGame(path, skipObjectCheck); }