WAD Loading

First run of WAD loading. Is able to read the header of the WAD
file.
This commit is contained in:
Wesley Irvin
2023-04-25 14:43:40 -04:00
parent d138a9b923
commit a320281e2d
3 changed files with 84 additions and 1 deletions

View File

@@ -1,3 +1,18 @@
mod wadutils;
fn main() {
println!("Hello, world!");
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)
);
}