diff --git a/src/lib.rs b/src/lib.rs index bfaf133..1140107 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,6 +15,15 @@ pub enum PropertyTree { Dictionary(HashMap), } +impl PropertyTree { + pub fn from_reader(reader: &mut R) -> anyhow::Result + where + R: Read, + { + Ok(PropertyTree::None) + } +} + #[derive(Debug)] pub struct ModSettings { pub version: [u16; 4], @@ -56,7 +65,7 @@ impl ModSettings { Ok(ModSettings { version, - data: PropertyTree::None, + data: PropertyTree::from_reader(&mut reader)?, }) } }