feat(player): update config module

This commit is contained in:
2026-03-19 01:25:32 +08:00
parent 5868f0da05
commit f55d623dca

View File

@@ -19,16 +19,30 @@ pub struct Config {
#[arg(short = 'y', long = "yolo", help = "YOLO JSON file path")] #[arg(short = 'y', long = "yolo", help = "YOLO JSON file path")]
pub yolo: Option<PathBuf>, pub yolo: Option<PathBuf>,
#[arg(short = 'w', long = "width", default_value = "1280", help = "Window width")] #[arg(
short = 'w',
long = "width",
default_value = "1280",
help = "Window width"
)]
pub width: u32, pub width: u32,
#[arg(short = 'h', long = "height", default_value = "720", help = "Window height")] #[arg(
short = 'h',
long = "height",
default_value = "720",
help = "Window height"
)]
pub height: u32, pub height: u32,
#[arg(long = "fullscreen", help = "Start in fullscreen mode")] #[arg(long = "fullscreen", help = "Start in fullscreen mode")]
pub fullscreen: bool, pub fullscreen: bool,
#[arg(long = "locale", default_value = "en", help = "UI language (en, zh-TW, etc.)")] #[arg(
long = "locale",
default_value = "en",
help = "UI language (en, zh-TW, etc.)"
)]
pub locale: String, pub locale: String,
} }