diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-06-10 01:16:30 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-06-10 01:16:30 +0200 |
commit | 877549baca100d534c1272000b2af7a8b364cd35 (patch) | |
tree | 3f4a2df365b89be33e9ed0c50fd29c28c60c5994 /src/main.rs | |
parent | a25ac4073d201801030f5a2baf13c54d80cc3467 (diff) | |
download | evtclib-877549baca100d534c1272000b2af7a8b364cd35.tar.gz evtclib-877549baca100d534c1272000b2af7a8b364cd35.tar.bz2 evtclib-877549baca100d534c1272000b2af7a8b364cd35.zip |
basic structure for mechanic tracker
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index c6c0c2d..f632db4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ extern crate byteorder; extern crate evtclib; use byteorder::{ReadBytesExt, BE, LE}; +use std::env; use std::fs::File; use std::collections::HashMap; @@ -12,7 +13,7 @@ use std::io::BufReader; pub fn main() -> Result<(), evtclib::raw::parser::ParseError> { println!("Hello World!"); - let mut f = BufReader::new(File::open("material/Samarog.evtc")?); + let mut f = BufReader::new(File::open(env::args().skip(1).next().unwrap())?); let result = evtclib::raw::parse_file(&mut f)?; /* |