mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
@@ -1,5 +1,6 @@
|
|||||||
0.4.13 (in development)
|
0.4.13 (in development)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
- Feature: [#19596] Allow for playing back a replay without camera movement or alert box.
|
||||||
- Feature: [#20831] The ride selection window now shows object authors if debugging tools are active.
|
- Feature: [#20831] The ride selection window now shows object authors if debugging tools are active.
|
||||||
- Feature: [#20832] The ride music tab now shows a track listing for the current music style.
|
- Feature: [#20832] The ride music tab now shows a track listing for the current music style.
|
||||||
- Feature: [#22172] [Plugin] Expose ride satisfaction ratings to the plugin API.
|
- Feature: [#22172] [Plugin] Expose ride satisfaction ratings to the plugin API.
|
||||||
|
|||||||
@@ -28,3 +28,5 @@ uint32_t gCurrentDrawCount = 0;
|
|||||||
uint8_t gScreenFlags;
|
uint8_t gScreenFlags;
|
||||||
uint32_t gScreenAge;
|
uint32_t gScreenAge;
|
||||||
PromptMode gSavePromptMode;
|
PromptMode gSavePromptMode;
|
||||||
|
|
||||||
|
bool gSilentReplays = false;
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ extern bool gOpenRCT2NoGraphics;
|
|||||||
extern bool gOpenRCT2ShowChangelog;
|
extern bool gOpenRCT2ShowChangelog;
|
||||||
extern bool gOpenRCT2SilentBreakpad;
|
extern bool gOpenRCT2SilentBreakpad;
|
||||||
extern u8string gSilentRecordingName;
|
extern u8string gSilentRecordingName;
|
||||||
|
extern bool gSilentReplays;
|
||||||
|
|
||||||
#ifndef DISABLE_NETWORK
|
#ifndef DISABLE_NETWORK
|
||||||
extern int32_t gNetworkStart;
|
extern int32_t gNetworkStart;
|
||||||
|
|||||||
@@ -184,7 +184,10 @@ namespace OpenRCT2
|
|||||||
#ifndef DISABLE_NETWORK
|
#ifndef DISABLE_NETWORK
|
||||||
// If the network is disabled we will only get a dummy hash which will cause
|
// If the network is disabled we will only get a dummy hash which will cause
|
||||||
// false positives during replay.
|
// false positives during replay.
|
||||||
CheckState();
|
if (!gSilentReplays)
|
||||||
|
{
|
||||||
|
CheckState();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
ReplayCommands();
|
ReplayCommands();
|
||||||
|
|
||||||
@@ -870,7 +873,7 @@ namespace OpenRCT2
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Focus camera on event.
|
// Focus camera on event.
|
||||||
if (isPositionValid && !result.Position.IsNull())
|
if (!gSilentReplays && isPositionValid && !result.Position.IsNull())
|
||||||
{
|
{
|
||||||
auto* mainWindow = WindowGetMain();
|
auto* mainWindow = WindowGetMain();
|
||||||
if (mainWindow != nullptr)
|
if (mainWindow != nullptr)
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ static bool _all = false;
|
|||||||
static bool _about = false;
|
static bool _about = false;
|
||||||
static bool _verbose = false;
|
static bool _verbose = false;
|
||||||
static bool _headless = false;
|
static bool _headless = false;
|
||||||
|
static bool _silentReplays = false;
|
||||||
static u8string _password = {};
|
static u8string _password = {};
|
||||||
static u8string _userDataPath = {};
|
static u8string _userDataPath = {};
|
||||||
static u8string _openrct2DataPath = {};
|
static u8string _openrct2DataPath = {};
|
||||||
@@ -73,6 +74,7 @@ static constexpr CommandLineOptionDefinition StandardOptions[]
|
|||||||
{ CMDLINE_TYPE_SWITCH, &_about, NAC, "about", "show information about " OPENRCT2_NAME },
|
{ CMDLINE_TYPE_SWITCH, &_about, NAC, "about", "show information about " OPENRCT2_NAME },
|
||||||
{ CMDLINE_TYPE_SWITCH, &_verbose, NAC, "verbose", "log verbose messages" },
|
{ CMDLINE_TYPE_SWITCH, &_verbose, NAC, "verbose", "log verbose messages" },
|
||||||
{ CMDLINE_TYPE_SWITCH, &_headless, NAC, "headless", "run " OPENRCT2_NAME " headless" IMPLIES_SILENT_BREAKPAD },
|
{ CMDLINE_TYPE_SWITCH, &_headless, NAC, "headless", "run " OPENRCT2_NAME " headless" IMPLIES_SILENT_BREAKPAD },
|
||||||
|
{ CMDLINE_TYPE_SWITCH, &_silentReplays, NAC, "silent-replays", "use unobtrusive replays" },
|
||||||
#ifndef DISABLE_NETWORK
|
#ifndef DISABLE_NETWORK
|
||||||
{ CMDLINE_TYPE_INTEGER, &_port, NAC, "port", "port to use for hosting or joining a server" },
|
{ CMDLINE_TYPE_INTEGER, &_port, NAC, "port", "port to use for hosting or joining a server" },
|
||||||
{ CMDLINE_TYPE_STRING, &_address, NAC, "address", "address to listen on when hosting a server" },
|
{ CMDLINE_TYPE_STRING, &_address, NAC, "address", "address to listen on when hosting a server" },
|
||||||
@@ -224,6 +226,11 @@ exitcode_t CommandLine::HandleCommandDefault()
|
|||||||
gCustomPassword = _password;
|
gCustomPassword = _password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_silentReplays)
|
||||||
|
{
|
||||||
|
gSilentReplays = _silentReplays;
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ void Painter::Paint(IDrawingEngine& de)
|
|||||||
auto* replayManager = GetContext()->GetReplayManager();
|
auto* replayManager = GetContext()->GetReplayManager();
|
||||||
const char* text = nullptr;
|
const char* text = nullptr;
|
||||||
|
|
||||||
if (replayManager->IsReplaying())
|
if (replayManager->IsReplaying() && !gSilentReplays)
|
||||||
text = "Replaying...";
|
text = "Replaying...";
|
||||||
else if (replayManager->ShouldDisplayNotice())
|
else if (replayManager->ShouldDisplayNotice())
|
||||||
text = "Recording...";
|
text = "Recording...";
|
||||||
|
|||||||
Reference in New Issue
Block a user