Add reckless replay load button (#26212)

* Add reckless replay load button

* A

* More descriptive button
This commit is contained in:
Leon Friedrich
2024-03-18 18:31:36 +11:00
committed by GitHub
parent 7561bef6a7
commit 646f7e07a8
4 changed files with 72 additions and 10 deletions

View File

@@ -70,6 +70,7 @@ namespace Content.Client.Entry
[Dependency] private readonly IResourceManager _resourceManager = default!;
[Dependency] private readonly IReplayLoadManager _replayLoad = default!;
[Dependency] private readonly ILogManager _logManager = default!;
[Dependency] private readonly ContentReplayPlaybackManager _replayMan = default!;
public override void Init()
{
@@ -191,6 +192,7 @@ namespace Content.Client.Entry
_resourceManager,
ReplayConstants.ReplayZipFolder.ToRootedPath());
_replayMan.LastLoad = (null, ReplayConstants.ReplayZipFolder.ToRootedPath());
_replayLoad.LoadAndStartReplay(reader);
}
else if (_gameController.LaunchState.FromLauncher)