Skip to content

Commit

Permalink
chore: improve println
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill030 committed May 25, 2024
1 parent 551cab6 commit 67ab162
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
}
Expand Down Expand Up @@ -72,14 +69,16 @@ impl<'a> Library<'a> {
});
}

println!("\tFound {file_count} files in WAD, version {version}!");

Ok(Self {
version,
file_count,
files,
buffer,
})
} else {
panic!("No valid KIWAD header was recognized!");
panic!("No valid KIWAD header recognized!");
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}

0 comments on commit 67ab162

Please sign in to comment.