Skip to content

Open bk2 files#4

Draft
hhirtz wants to merge 2 commits intoNobodyNada:masterfrom
hhirtz:bk2
Draft

Open bk2 files#4
hhirtz wants to merge 2 commits intoNobodyNada:masterfrom
hhirtz:bk2

Conversation

@hhirtz
Copy link
Contributor

@hhirtz hhirtz commented Jan 28, 2026

This is a patch i started long ago but doesn't work yet.

First commit (will) implement libretro environment variables to pass bk2 sync settings to bsnes. The second commit is for actual opening/saving bk2 files.

TODO

  • make bk2 files a separate type than MovieFile, because 1/ bk2 uses sha1 instead of sha2, and 2/ mvi needs to differentiate them on save (not save it as a .mvi when opened as a .bk2)

This stores extra metadata for libretro cores, like sync settings.
Bk2 files require specific sync settings, so it's required to open them.

The `MovieFile` field is annotated with `#[serde(default)]` so that mvi
can still open old movie files.
Most sync settings can be found in bizhawk sources at snes_init in
waterbox/bsnescore/bsnes/target-bsnescore/bsnescore.cpp

Some sync settings were not ported:
- LimitAnalogChangeSensitivity: mouse-related setting which i dont know
  what is doing in bsnes sync settings
- RegionOverride, UseRealTime and InitialTime: couldn't find the
  equivalent setting in bsnes' interface
@hhirtz
Copy link
Contributor Author

hhirtz commented Jan 29, 2026

Played a bk2 movie without passing environment variables to the bsnes core, and it seemed to sync well. haven't tried with longer movies yet

2026-01-30.00-02-37.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments