Added WAD parsing, allows for WAD packing/unpacking

This commit is contained in:
2025-03-18 18:01:17 -04:00
parent 93f2103763
commit 83dc83d2d6
8 changed files with 243 additions and 15 deletions

View File

@@ -129,7 +129,7 @@ impl TMD {
})
}
pub fn to_vec(&self) -> Result<Vec<u8>, std::io::Error> {
pub fn to_bytes(&self) -> Result<Vec<u8>, std::io::Error> {
let mut buf: Vec<u8> = Vec::new();
buf.write_u32::<BigEndian>(self.signature_type)?;
buf.write_all(&self.signature)?;