From a53bfea7d049d1fd9291de4a2ea926fd2f7bea9d Mon Sep 17 00:00:00 2001 From: SlidyBat <25954912+SlidyBat@users.noreply.github.com> Date: Wed, 8 Jan 2025 00:05:00 +1100 Subject: [PATCH] Update console command used for watching replay --- scripts/pages/end-of-run/end-of-run.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/pages/end-of-run/end-of-run.ts b/scripts/pages/end-of-run/end-of-run.ts index 974d0a20..f00370db 100644 --- a/scripts/pages/end-of-run/end-of-run.ts +++ b/scripts/pages/end-of-run/end-of-run.ts @@ -58,9 +58,8 @@ class EndOfRunHandler { icon = `file://{images}/${Timer.RunStatusIcons.PROGRESS}.svg`; break; case Timer.RunStatusStates.SUCCESS: - icon = `file://{images}/${ - type === Timer.RunStatusTypes.UPLOAD ? Timer.RunStatusIcons.UPLOAD : Timer.RunStatusIcons.SAVE - }.svg`; + icon = `file://{images}/${type === Timer.RunStatusTypes.UPLOAD ? Timer.RunStatusIcons.UPLOAD : Timer.RunStatusIcons.SAVE + }.svg`; text = $.Localize( type === Timer.RunStatusTypes.UPLOAD ? 'EndOfRun_Status_UploadSuccess' @@ -119,7 +118,10 @@ class EndOfRunHandler { } watchReplay() { - GameInterfaceAPI.ConsoleCommand('mom_replay_play_loaded'); + if (!this.baseRun) + return; + + GameInterfaceAPI.ConsoleCommand(`mom_tv_replay_watch ${this.baseRun.filePath}`); this.hideEndOfRun(false, true); }