Fixes deep links not working when current game is paused

This commit is contained in:
Riley Testut 2019-08-07 13:15:59 -07:00
parent 3ac77f5707
commit 5282265fd5

View File

@ -998,9 +998,10 @@ private extension GameViewController
{ {
guard let game = notification.userInfo?[DeepLink.Key.game] as? Game else { return } guard let game = notification.userInfo?[DeepLink.Key.game] as? Game else { return }
let previousGame = self.game
self.game = game self.game = game
if let pausedSaveState = self.pausedSaveState, game == (self.game as? Game) if let pausedSaveState = self.pausedSaveState, game == (previousGame as? Game)
{ {
// Launching current game via deep link, so we store a copy of the paused save state to resume when emulator core is started. // Launching current game via deep link, so we store a copy of the paused save state to resume when emulator core is started.