Replay recording API improvements. (#4193)

This commit is contained in:
Pieter-Jan Briers
2023-07-23 15:36:35 +02:00
committed by GitHub
parent e4a14d1ec8
commit 5347eb3350
10 changed files with 118 additions and 44 deletions

View File

@@ -84,7 +84,7 @@ namespace Robust.Client
[Dependency] private readonly NetworkResourceManager _netResMan = default!;
[Dependency] private readonly IReplayLoadManager _replayLoader = default!;
[Dependency] private readonly IReplayPlaybackManager _replayPlayback = default!;
[Dependency] private readonly IReplayRecordingManager _replayRecording = default!;
[Dependency] private readonly IReplayRecordingManagerInternal _replayRecording = default!;
private IWebViewManagerHook? _webViewHook;
@@ -766,6 +766,8 @@ namespace Robust.Client
internal void CleanupGameThread()
{
_replayRecording.Shutdown();
_modLoader.Shutdown();
// CEF specifically makes a massive silent stink of it if we don't shut it down from the correct thread.