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 25, 2024
1 parent 9308e1b commit 000bc4f
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 @@ -261,10 +261,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 000bc4f

Please sign in to comment.