diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-15 23:21:28 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-15 23:21:28 +0200 |
| commit | bc331bef8293cf794f246f985845bec2155eb424 (patch) | |
| tree | addc3d309312f5dd341ace4b4e65034970cba541 /server | |
| parent | e2f5f2e38a00fa4b0688440b5f0e560a552b162a (diff) | |
| download | hurrycurry-bc331bef8293cf794f246f985845bec2155eb424.tar hurrycurry-bc331bef8293cf794f246f985845bec2155eb424.tar.bz2 hurrycurry-bc331bef8293cf794f246f985845bec2155eb424.tar.zst | |
camera replay option in render tool
Diffstat (limited to 'server')
| -rw-r--r-- | server/replaytool/src/render.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/replaytool/src/render.rs b/server/replaytool/src/render.rs index 12e7d43c..96691e91 100644 --- a/server/replaytool/src/render.rs +++ b/server/replaytool/src/render.rs @@ -31,6 +31,9 @@ use tokio::{ pub struct RenderArgs { /// Replay file path input: PathBuf, + /// Camera replay file path + #[arg(short = 'c', long)] + camera: Option<PathBuf>, /// Output video file path passed to godot (must end in either .avi for MJPEG or .png for PNG sequence) output: PathBuf, #[arg(short = 'r', long, default_value = "30")] @@ -106,6 +109,10 @@ window/size/viewport_height={height} args.extend(["--fixed-fps", &fps]); args.push("--print-fps"); args.push("--"); + let camera_path = a.camera.map(|path| path.to_str().unwrap().to_string()); + if let Some(path) = &camera_path { + args.extend(["--replay-camera", path]); + } let uri = format!("ws://127.0.0.1:{port}"); args.push(&uri); |