Expand description
Library for traversing & reading GameCube and Wii disc images.
Based on the C++ library nod, but does not currently support authoring.
Currently supported file formats:
- ISO (GCM)
- WIA / RVZ
- WBFS
- NFS (Wii U VC files, e.g.
hif_000000.nfs)
§Examples
Opening a disc image and reading a file:
use std::io::Read;
use nod::{Disc, PartitionKind};
fn main() -> nod::Result<()> {
let disc = Disc::new("path/to/file.iso")?;
let mut partition = disc.open_partition_kind(PartitionKind::Data)?;
let meta = partition.meta()?;
let fst = meta.fst()?;
if let Some((_, node)) = fst.find("/MP3/Worlds.txt") {
let mut s = String::new();
partition
.open_file(node)
.expect("Failed to open file stream")
.read_to_string(&mut s)
.expect("Failed to read file");
println!("{}", s);
}
Ok(())
}Macros§
- Creates a fixed-size array reference from a slice.
- Creates a mutable fixed-size array reference from a slice.
- Compile-time assertion.
Structs§
- Apploader header
- Shared GameCube & Wii disc header
- Extra metadata about the underlying disc file format.
- DOL header
- A view into the file system tree (FST).
- An individual file system node.
- Partition header
- Disc partition metadata
Enums§
- Error types for nod.
- File system node kind.
- Partition type
Constants§
- Size of the debug and region information (bi2.bin)
- Size of the disc header and partition header (boot.bin)
Traits§
- An open read stream for a disc partition.
- A helper trait for seekable read streams.
Type Aliases§
- Helper result type for
Error.