diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-04-14 20:03:16 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-04-14 20:03:16 +0200 |
commit | 6e7431f0ce600502c335b75c8acfe0cf448b68e6 (patch) | |
tree | 1a91d65b5287d48fd14d4d1530e5cdd13f4e2ad0 /src/main.rs | |
download | evtclib-6e7431f0ce600502c335b75c8acfe0cf448b68e6.tar.gz evtclib-6e7431f0ce600502c335b75c8acfe0cf448b68e6.tar.bz2 evtclib-6e7431f0ce600502c335b75c8acfe0cf448b68e6.zip |
Initial commit
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 15 |
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(()) +} |