WAD Loading
First run of WAD loading. Is able to read the header of the WAD file.
This commit is contained in:
17
src/main.rs
17
src/main.rs
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user