Remove old VAG dependency

This commit is contained in:
jaby 2024-11-03 21:31:36 +00:00
parent 4ae3f1fb3d
commit ac7346d957
3 changed files with 1 additions and 24 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "psxfileconv" name = "psxfileconv"
version = "0.5.0" version = "0.6.0"
edition = "2021" edition = "2021"
[profile.release] [profile.release]

View File

@ -1,5 +1,4 @@
pub mod my_vag; pub mod my_vag;
pub mod old_vag;
pub mod xa; pub mod xa;
use std::{env, path::PathBuf, process::Command}; use std::{env, path::PathBuf, process::Command};

View File

@ -1,22 +0,0 @@
use clap::Args;
use std::path::PathBuf;
use tool_helper::Error;
#[derive(Args)]
pub struct Arguments {
frequency: Option<u32>
}
pub fn convert(args: Arguments, input: PathBuf, output: PathBuf) -> Result<(), Error> {
let mut cmd_args = vec!["-t", "vag"];
let frequency_str;
if let Some(frequency) = args.frequency {
frequency_str = frequency.to_string().to_owned();
cmd_args.push("-f");
cmd_args.push(frequency_str.as_ref());
}
super::run_psxavenc(input, output, cmd_args)
}