Merge branch 'feat/replayDirConfig' into dev

This commit is contained in:
MSWS
2025-03-02 23:16:05 -08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -152,7 +152,7 @@ sharptimer_replays_enabled false
sharptimer_replay_max_length 300 // The maximum length for a Replay to be saved in seconds. Anything longer will be discarded Default value: 300 sharptimer_replay_max_length 300 // The maximum length for a Replay to be saved in seconds. Anything longer will be discarded Default value: 300
sharptimer_replay_bot_enabled false // Whether a looping Server Record bot should be spawned in or not (requires navmesh fix). Default value: false sharptimer_replay_bot_enabled false // Whether a looping Server Record bot should be spawned in or not (requires navmesh fix). Default value: false
sharptimer_replay_bot_name SERVER RECORD REPLAY // What the name of the Replay Record bot should be. Default value: SERVER RECORD REPLAY sharptimer_replay_bot_name SERVER RECORD REPLAY // What the name of the Replay Record bot should be. Default value: SERVER RECORD REPLAY
sharptimer_replay_data_directory csgo cfg SharpTimer PlayerReplayData // Directory for replay data. Prepended with game dir. Default value: csgo cfg SharpTimer PlayerReplayData sharptimer_replay_data_directory csgo/cfg/SharpTimer/PlayerReplayData // Directory for replay data. Prepended with game dir. Default value: csgo cfg SharpTimer PlayerReplayData
//CHECKPOINTS/SAVELOC //CHECKPOINTS/SAVELOC

View File

@@ -1837,7 +1837,7 @@ namespace SharpTimer
remoteSurfDataSource = $"{args}"; remoteSurfDataSource = $"{args}";
} }
[ConsoleCommand("sharptimer_replay_data_directory", "Directory for replay data. Prepended with game dir. Default value: csgo cfg SharpTimer PlayerReplayData")] [ConsoleCommand("sharptimer_replay_data_directory", "Directory for replay data. Prepended with game dir. Default value: csgo/cfg/SharpTimer/PlayerReplayData")]
[CommandHelper(whoCanExecute: CommandUsage.SERVER_ONLY)] [CommandHelper(whoCanExecute: CommandUsage.SERVER_ONLY)]
public void SharpTimerReplayDataDirectory(CCSPlayerController? player, CommandInfo command) public void SharpTimerReplayDataDirectory(CCSPlayerController? player, CommandInfo command)
{ {
@@ -1849,7 +1849,7 @@ namespace SharpTimer
return; return;
} }
playerReplaysPath = Path.Join(gameDir, args); Path.Join([gameDir, ..args.Split('/')]);
} }
} }
} }