Remove old VAG dependency
This commit is contained in:
parent
4ae3f1fb3d
commit
ac7346d957
|
@ -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]
|
||||||
|
|
|
@ -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};
|
||||||
|
|
|
@ -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)
|
|
||||||
}
|
|
Loading…
Reference in New Issue