pub fn export_fm2(
movie: &Movie,
opts: &Fm2ExportOpts,
) -> Result<String, Fm2Error>Expand description
Serialize a Movie to .fm2 text.
Emits a version 3 header, then emuVersion, rerecordCount, palFlag
(from Movie::region – both Region::Pal and Region::Dendy are
PAL-timed, so both export palFlag 1), fourscore, port0/port1/port2
(all gamepad / none), the optional romFilename / romChecksum, an
optional comment author line, then the |c|RLDUTSBA|RLDUTSBA|| input log
(one line per frame, with a trailing empty port2 field per the spec).
Only StartPoint::PowerOn movies export; a StartPoint::SaveState
movie has no portable .fm2 representation.
§Errors
Returns Fm2Error::Unsupported if movie is anchored to an embedded
save state.