Mercurial > touhou
diff examples/anmrenderer.rs @ 701:b6c351ca0a35
anm0: return the nom IResult and the list of Anm0s.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 23 Aug 2019 15:34:03 +0200 |
parents | ccb739c5b66c |
children | 84af5bedbde4 |
line wrap: on
line diff
--- a/examples/anmrenderer.rs +++ b/examples/anmrenderer.rs @@ -108,7 +108,8 @@ fn main() { // Open the ANM file. let buf = load_file_into_vec(anm_filename); - let anm0 = Anm0::from_slice(&buf).unwrap(); + let (_, mut anms) = Anm0::from_slice(&buf).unwrap(); + let anm0 = anms.pop().unwrap(); if !anm0.scripts.contains_key(&script) { eprintln!("This anm0 doesn’t contain a script named {}.", script);