diff --git a/src/library.rs b/src/library.rs index 8c1b64e..c14d6a1 100644 --- a/src/library.rs +++ b/src/library.rs @@ -39,9 +39,6 @@ impl<'a> Library<'a> { let version = reader.read_u32()?; let file_count = reader.read_u32()?; - // println!("\tFileCount: {file_count}"); - // println!("\tVersion: {version}"); - if version >= 2 { reader.read_bytes(1)?; } @@ -72,6 +69,8 @@ impl<'a> Library<'a> { }); } + println!("\tFound {file_count} files in WAD, version {version}!"); + Ok(Self { version, file_count, @@ -79,7 +78,7 @@ impl<'a> Library<'a> { buffer, }) } else { - panic!("No valid KIWAD header was recognized!"); + panic!("No valid KIWAD header recognized!"); } } diff --git a/src/main.rs b/src/main.rs index 5eda11b..f4f3334 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,12 +22,13 @@ fn main() { .join("output") .join(arg_path.file_name().unwrap()); + println!("Extracting files..."); wad.open_all_files(&mut save_path); }); println!("Done!"); } else { - eprintln!("No or incorrect file(s) provided. All imported files must have the .wad file extension!"); + eprintln!("No or incorrect file(s) provided. All imported files must have a .wad file extension!"); eprintln!("Usage: Drag one or multiple .wad files onto this executable."); } }