Skip to content

Commit

Permalink
Use core.Unload() on escape
Browse files Browse the repository at this point in the history
  • Loading branch information
kivutar committed Jan 13, 2019
1 parent 263c2a2 commit 4b5b43d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/libretro/ludo/menu"
"github.com/libretro/ludo/notifications"
"github.com/libretro/ludo/playlists"
"github.com/libretro/ludo/savefiles"
"github.com/libretro/ludo/scanner"
"github.com/libretro/ludo/settings"
"github.com/libretro/ludo/state"
Expand Down Expand Up @@ -114,8 +113,6 @@ func main() {

// Unload and deinit in the core.
if state.Global.CoreRunning {
savefiles.SaveSRAM()
state.Global.Core.UnloadGame()
state.Global.Core.Deinit()
core.Unload()
}
}

0 comments on commit 4b5b43d

Please sign in to comment.