Skip to content

Commit

Permalink
Update console command used for watching replay
Browse files Browse the repository at this point in the history
  • Loading branch information
SlidyBat committed Jan 10, 2025
1 parent 2fc695b commit a53bfea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/pages/end-of-run/end-of-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit a53bfea

Please sign in to comment.