Add Support for muisca paz archive

This commit is contained in:
2025-11-02 17:43:00 +08:00
parent fe31f5c595
commit 04f9b1469a
20 changed files with 903 additions and 29 deletions

View File

@@ -71,6 +71,14 @@ fn parse_jxl_distance(s: &str) -> Result<f32, String> {
number_range(s, 0.0, 25.0)
}
#[cfg(feature = "musica-arc")]
pub fn get_musica_game_title_value_parser() -> Vec<clap::builder::PossibleValue> {
crate::scripts::musica::archive::paz::get_supported_games()
.iter()
.map(|s| clap::builder::PossibleValue::new(s))
.collect()
}
/// Tools for export and import scripts
#[derive(Parser, Debug, Clone)]
#[clap(
@@ -529,6 +537,10 @@ pub struct Arg {
#[arg(long, global = true)]
/// Insert new language at the specified index in Kirikiri SCN script. If index is out of bounds, this flags will be ignored.
pub kirikiri_language_insert: bool,
#[cfg(feature = "musica-arc")]
#[arg(long, global = true, value_parser = get_musica_game_title_value_parser())]
/// Musica game title for paz archive.
pub musica_game_title: Option<String>,
#[command(subcommand)]
/// Command
pub command: Command,