From 000bc4f661ee31151bb1cd81a2c328ca42df2abe Mon Sep 17 00:00:00 2001 From: Sergey Stepanov Date: Fri, 23 Feb 2024 21:06:55 +0300 Subject: [PATCH] Load apps after rendering 1 frame This is mandatory for Mupen and DOSBox save states. Enabled for all emulators. --- pkg/worker/caged/libretro/frontend.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/worker/caged/libretro/frontend.go b/pkg/worker/caged/libretro/frontend.go index 0386b0a86..ab6b8ed18 100644 --- a/pkg/worker/caged/libretro/frontend.go +++ b/pkg/worker/caged/libretro/frontend.go @@ -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") }