Add Disc::detect for detecting disc image format

This commit is contained in:
2024-10-03 00:55:03 -06:00
parent 370d03fa9a
commit 54890674a2
11 changed files with 103 additions and 62 deletions

View File

@@ -92,11 +92,7 @@ fn info_file(path: &Path) -> nod::Result<()> {
} else if header.is_gamecube() {
// TODO
} else {
println!(
"Invalid GC/Wii magic: {:#010X}/{:#010X}",
header.gcn_magic.get(),
header.wii_magic.get()
);
println!("Invalid GC/Wii magic: {:#x?}/{:#x?}", header.gcn_magic, header.wii_magic);
}
println!();
Ok(())