Fix crash when loading games too early (also for mac)

This commit is contained in:
sergystepanov 2024-07-10 00:36:20 +03:00 committed by GitHub
parent 72b791cc5e
commit 7e612458a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,9 +262,9 @@ func (f *Frontend) Start() {
f.log.Error().Err(err).Msg("save on quit failed")
}
}
f.mui.Unlock()
f.Shutdown()
}()
defer f.mui.Unlock()
if f.HasSave() {
// advance 1 frame for Mupen, DOSBox save states