Files
doom-oxidized/src/main.rs
Wesley Irvin a320281e2d WAD Loading
First run of WAD loading. Is able to read the header of the WAD
file.
2023-04-26 11:52:28 -04:00

19 lines
385 B
Rust

mod wadutils;
fn main() {
let wad_file = wadutils::load_wad("WADs/doom1.wad");
println!(
"WAD Path: {}
Header:
Identifier: {}
Lump Count: {}
Initial Offset: {}",
wadutils::get_wad_path(&wad_file),
wadutils::get_wad_type(&wad_file),
wadutils::get_num_lumps(&wad_file),
wadutils::get_init_offset(&wad_file)
);
}