Mercurial > touhou
comparison examples/eclrenderer.rs @ 696:7ae576a418ff
ecl_vm: implement Call, Return, and the call stack thingy.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 23 Aug 2019 02:31:08 +0200 |
parents | ac092b70c39a |
children | ccb739c5b66c |
comparison
equal
deleted
inserted
replaced
695:f5b34a1c2707 | 696:7ae576a418ff |
---|---|
97 } | 97 } |
98 let ecl_filename = &args[1]; | 98 let ecl_filename = &args[1]; |
99 let anm_filename = &args[2]; | 99 let anm_filename = &args[2]; |
100 let png_filename = &args[3]; | 100 let png_filename = &args[3]; |
101 let rank: Rank = args[4].parse().expect("rank"); | 101 let rank: Rank = args[4].parse().expect("rank"); |
102 let sub: u8 = args[5].parse().expect("number"); | 102 let sub: u16 = args[5].parse().expect("number"); |
103 | 103 |
104 // Open the ECL file. | 104 // Open the ECL file. |
105 let file = File::open(ecl_filename).unwrap(); | 105 let file = File::open(ecl_filename).unwrap(); |
106 let mut file = BufReader::new(file); | 106 let mut file = BufReader::new(file); |
107 let mut buf = vec![]; | 107 let mut buf = vec![]; |