U8 archive unpacking command now functional

This commit is contained in:
2025-04-09 09:18:29 -04:00
parent 884657268b
commit 7cef25d8f0
2 changed files with 62 additions and 11 deletions

View File

@@ -19,18 +19,18 @@ pub enum U8Error {
}
#[derive(Clone, Debug)]
struct U8Node {
node_type: u8,
name_offset: u32, // This is really type u24, so the most significant byte will be ignored.
data_offset: u32,
size: u32,
pub struct U8Node {
pub node_type: u8,
pub name_offset: u32, // This is really type u24, so the most significant byte will be ignored.
pub data_offset: u32,
pub size: u32,
}
#[derive(Debug)]
pub struct U8Archive {
u8_nodes: Vec<U8Node>,
file_names: Vec<String>,
file_data: Vec<Vec<u8>>,
pub u8_nodes: Vec<U8Node>,
pub file_names: Vec<String>,
pub file_data: Vec<Vec<u8>>,
root_node_offset: u32,
header_size: u32,
data_offset: u32,