From 52a2fb9fab1f7bfd497fb8c2e815fac207bfedb6 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 27 Jul 2016 12:30:48 -0500 Subject: [PATCH] Fixes occasional crash when restarting emulation --- SNESDeltaCore/SNESEmulatorBridge.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SNESDeltaCore/SNESEmulatorBridge.mm b/SNESDeltaCore/SNESEmulatorBridge.mm index 8b73e2d..b6eff80 100644 --- a/SNESDeltaCore/SNESEmulatorBridge.mm +++ b/SNESDeltaCore/SNESEmulatorBridge.mm @@ -54,6 +54,8 @@ + (instancetype)sharedBridge - (void)startWithGameURL:(NSURL *)URL { + [self stop]; + self.gameURL = URL; ZeroMemory(&Settings, sizeof(Settings));