Skip to content

Commit

Permalink
Load apps after rendering 1 frame
Browse files Browse the repository at this point in the history
This is mandatory for Mupen and DOSBox save states. Enabled for all emulators.
  • Loading branch information
sergystepanov committed Feb 23, 2024
1 parent eac770e commit 0fb0b41
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/worker/caged/libretro/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,9 @@ func (f *Frontend) Start() {
defer f.mui.Unlock()

if f.HasSave() {
// advance 1 frame for Mupen save state
if f.nano.LibCo {
f.Tick()
}
// advance 1 frame for Mupen, DOSBox save states
// loading will work if autostart is selected for DOSBox apps
f.Tick()
if err := f.RestoreGameState(); err != nil {
f.log.Error().Err(err).Msg("couldn't load a save file")
}
Expand Down

0 comments on commit 0fb0b41

Please sign in to comment.