lad 0.1.1

A simple DooM WAD file loader/reader
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Set of structures that represent a WAD file.

/// Contains the wad type (IWAD or PWAD), how many entries it has, and a pointer to the first entry.
#[derive(Debug, Clone)]
#[repr(C)]
pub struct Header {
    pub wad_type: [u8; 4],
    pub entry_no: u32,
    pub dir_ptr: u32,
}
/// Contains a pointer to the entry, the size of the entry and the name of the entry.
#[derive(Debug, Clone)]
#[repr(C)]
pub struct DirEntry {
    pub ptr: u32,
    pub size: u32,
    pub name: [u8; 8],
}