Fixes bug where peeking a save state then cancelling would prevent save states from working
This commit is contained in:
parent
b98b9d60ca
commit
9d599064a8
@ -270,6 +270,14 @@ private extension SaveStatesViewController
|
|||||||
|
|
||||||
func loadSaveState(saveState: SaveState)
|
func loadSaveState(saveState: SaveState)
|
||||||
{
|
{
|
||||||
|
let emulatorCore = self.delegate.saveStatesViewControllerActiveEmulatorCore(self)
|
||||||
|
|
||||||
|
if emulatorCore.state == .Stopped
|
||||||
|
{
|
||||||
|
emulatorCore.startEmulation()
|
||||||
|
emulatorCore.pauseEmulation()
|
||||||
|
}
|
||||||
|
|
||||||
self.delegate?.saveStatesViewController(self, loadSaveState: saveState)
|
self.delegate?.saveStatesViewController(self, loadSaveState: saveState)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user