#解析器 #tas #m64 #mupen64

mupen64-movie-parser

Mupen64-rerecording电影文件的解析器

2个稳定版本

2.0.0 2022年4月5日
1.0.1 2022年3月31日

#7 in #tas

MIT许可证

105KB
679

mupen64-movie-parser


crates.io Documentation

一个用于解析Mupen64-rerecording .m64文件的crate。

示例

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);

lib.rs:

一个用于解析Mupen64-rerecording .m64文件的crate。

示例

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);

依赖关系

~2.2–3MB
~57K SLoC