From e4a705b4e82921cdafb8094903aed0247d07eef4 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 14 Jun 2026 18:26:16 +0200 Subject: [PATCH] Allow starting editor directly from command line (#26689) --- distribution/changelog.txt | 1 + src/openrct2/command_line/RootCommands.cpp | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index f584fec1b4..7cd12a43e9 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -2,6 +2,7 @@ ------------------------------------------------------------------------ - Feature: [#26308] Add all new track pieces to the inverted roller coaster. - Feature: [#26442] Add cheat to disable grass growing. +- Change: [#26689] A clear scenario editor can now be opened directly from the command line. - Fix: [#26494] The limits for where walls on the path side of the first tile block the view of rides/scenery are wrong (original bug). - Fix: [#26504] The boosts/penalties to excitement and nausea that air time provides are calculated wrong. diff --git a/src/openrct2/command_line/RootCommands.cpp b/src/openrct2/command_line/RootCommands.cpp index 27b845ad83..ab1e9106fd 100644 --- a/src/openrct2/command_line/RootCommands.cpp +++ b/src/openrct2/command_line/RootCommands.cpp @@ -261,12 +261,10 @@ namespace OpenRCT2 } const char* parkUri; - if (!enumerator->TryPopString(&parkUri)) + if (enumerator->TryPopString(&parkUri)) { - Console::Error::WriteLine("Expected path or URL to a saved park."); - return EXITCODE_FAIL; + String::set(gOpenRCT2StartupActionPath, sizeof(gOpenRCT2StartupActionPath), parkUri); } - String::set(gOpenRCT2StartupActionPath, sizeof(gOpenRCT2StartupActionPath), parkUri); gOpenRCT2StartupAction = StartupAction::edit; return EXITCODE_CONTINUE;