Skip to main content

import_vmv

Function import_vmv 

Source
pub fn import_vmv(
    bytes: &[u8],
    rom_sha256: [u8; 32],
) -> Result<(Movie, LegacyMeta), LegacyMovieError>
Expand description

Import a VirtuaNES .vmv movie.

Documentation-derived (TASVideos OtherEmulators/VMV): BizHawk never shipped a .vmv importer. Header layout per VirtuaNES 0.93: 12-byte magic, a movie-data offset at 0x34, a frame count at 0x38, a controller-enable + reset flag word at 0x10, and a video-mode byte (0=NTSC, 1=PAL) at 0x23. The per-frame record is one byte per enabled controller; the bit order is the canonical NES order, so each byte maps straight to Buttons.

We seek to the movie-data offset (rather than assuming a fixed header size) so the parse is robust across the older header variants whose exact layout is not authoritatively documented.

ยงErrors

LegacyMovieError for a bad magic, a save-state start, a four-score (>2-controller) movie, an offset that overlaps the header, or a truncated body.