From 5282265fd5e5fd19846fb3a2605fa98cda5f1c3b Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 7 Aug 2019 13:15:59 -0700 Subject: [PATCH] Fixes deep links not working when current game is paused --- Delta/Emulation/GameViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Delta/Emulation/GameViewController.swift b/Delta/Emulation/GameViewController.swift index 28503b2..509f209 100644 --- a/Delta/Emulation/GameViewController.swift +++ b/Delta/Emulation/GameViewController.swift @@ -998,9 +998,10 @@ private extension GameViewController { guard let game = notification.userInfo?[DeepLink.Key.game] as? Game else { return } + let previousGame = self.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.