Fixes bug where peeking a save state then cancelling would prevent save states from working

This commit is contained in:
Riley Testut 2016-05-21 14:40:48 -05:00
parent b98b9d60ca
commit 9d599064a8

View File

@ -270,6 +270,14 @@ private extension SaveStatesViewController
func loadSaveState(saveState: SaveState)
{
let emulatorCore = self.delegate.saveStatesViewControllerActiveEmulatorCore(self)
if emulatorCore.state == .Stopped
{
emulatorCore.startEmulation()
emulatorCore.pauseEmulation()
}
self.delegate?.saveStatesViewController(self, loadSaveState: saveState)
}