aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
new file mode 100644
index 0000000..03418d0
--- /dev/null
+++ b/src/main.rs
@@ -0,0 +1,15 @@
+extern crate byteorder;
+extern crate evtclib;
+use byteorder::{ReadBytesExt, BE, LE};
+use std::fs::File;
+
+use std::io::{Seek, SeekFrom};
+
+pub fn main() -> Result<(), evtclib::raw::parser::ParseError> {
+ println!("Hello World!");
+ let mut f = File::open("material/Samarog.evtc")?;
+
+ let result = evtclib::raw::parse_file(&mut f)?;
+
+ Ok(())
+}