Crates.io | mupen64-movie-parser |
lib.rs | mupen64-movie-parser |
version | 2.0.0 |
source | src |
created_at | 2022-03-31 15:42:34.804427 |
updated_at | 2022-04-05 08:26:43.388762 |
description | A parser for Mupen64-rerecording movie files |
homepage | |
repository | https://github.com/Eddio0141/mupen64-movie-parser |
max_upload_size | |
id | 559673 |
size | 1,192,924 |
A crate for parsing Mupen64-rerecording .m64
files.
use mupen64_movie_parser::M64;
let m64 = include_bytes!("./tests/m64s/120 star tas (2012).m64");
let m64 = M64::from_u8_array(m64).unwrap();
assert_eq!(m64.author.as_str().trim_matches(char::from(0)),
"MKDasher, Nahoc, sonicpacker, Bauru, Eru, Goronem, Jesus, Kyman, Mokkori, Moltov, Nothing693, pasta, SilentSlayers, Snark, and ToT");
assert_eq!(m64.description.as_str().trim_matches(char::from(0)),
"18:08.33 saved over Rikku.");
assert_eq!(m64.rerecords, 2136942);
assert_eq!(m64.vi_frames, 290491);