LZ4 for vag not supported yet

This commit is contained in:
2024-09-28 14:02:43 +02:00
parent 4a46392f24
commit 1529e279ab
4 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
use clap::{Parser, Subcommand};
use jaby_engine_fconv::{audio::*, images::*, nothing};
use std::path::PathBuf;
use tool_helper::{Error, exit_with_error};
use tool_helper::{exit_with_error, print_warning, Error};
#[derive(Parser)]
#[clap(about = "Converts files to various JabyEngine related file formats", long_about = None)]
@@ -89,6 +89,10 @@ fn run_external_conversion(cmd: CommandLine) -> Result<(), Error> {
let input_file = cmd.input_file.ok_or(Error::from_str("Input has to be a file"))?;
let output_file = cmd.output_file.ok_or(Error::from_str("Output has to be a file"))?;
if cmd.compress_lz4 {
print_warning("LZ4 compression not supported for external commands".to_owned());
}
match cmd.sub_command {
SubCommands::VAG(args) => vag::convert(args, input_file, output_file),
SubCommands::XA(args) => xa::convert(args, input_file, output_file),