Implement LZ4 strip and make tools write errors to err instead of out

This commit is contained in:
2023-01-03 16:34:39 +01:00
parent 3d56532a3b
commit b55d033f17
11 changed files with 140 additions and 34 deletions

View File

@@ -52,7 +52,7 @@ fn run_main() -> Result<(), Error> {
// We encoded the file to a temporary buffer and now need to write it
if cmd.compress_lz4 {
let buffer = tool_helper::compress::lz4(&buffer, 16)?;
let buffer = tool_helper::compress::psx_default::lz4(&buffer)?;
output_file.write(&buffer)?;
}
@@ -69,7 +69,7 @@ fn run_main() -> Result<(), Error> {
fn main() {
if let Err(error) = run_main() {
println!("{}", error.text);
eprintln!("{}", error.text);
std::process::exit(error.exit_code);
}
}