mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 10:35:44 +00:00
Load apps after rendering 1 frame
This is mandatory for Mupen and DOSBox save states. Enabled for all emulators.
This commit is contained in:
parent
9308e1b388
commit
000bc4f661
1 changed files with 3 additions and 4 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue