From a1a73a2fefbb3c627418eb0803a8bc60b17b5485 Mon Sep 17 00:00:00 2001 From: scepheo Date: Sat, 30 Aug 2014 19:20:09 +0000 Subject: [PATCH] Fixed the core detection when playing back a NES/SNES movie. --- BizHawk.Client.Common/movie/MovieSession.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.Common/movie/MovieSession.cs b/BizHawk.Client.Common/movie/MovieSession.cs index 92c1fc07cc..0f4a2e0e89 100644 --- a/BizHawk.Client.Common/movie/MovieSession.cs +++ b/BizHawk.Client.Common/movie/MovieSession.cs @@ -451,11 +451,11 @@ namespace BizHawk.Client.Common var neshawkName = ((CoreAttributes)Attribute.GetCustomAttribute(typeof(NES), typeof(CoreAttributes))).CoreName; // If either is specified use that, else use whatever is currently set - if (Global.MovieSession.Movie.Core == quicknesName) + if (movie.Core == quicknesName) { Global.Config.NES_InQuickNES = true; } - else if (Global.MovieSession.Movie.Core == neshawkName) + else if (movie.Core == neshawkName) { Global.Config.NES_InQuickNES = false; } @@ -465,7 +465,7 @@ namespace BizHawk.Client.Common var snes9xName = ((CoreAttributes)Attribute.GetCustomAttribute(typeof(Snes9x), typeof(CoreAttributes))).CoreName; var bsnesName = ((CoreAttributes)Attribute.GetCustomAttribute(typeof(LibsnesCore), typeof(CoreAttributes))).CoreName; - if (Global.MovieSession.Movie.Core == snes9xName) + if (movie.Core == snes9xName) { Global.Config.SNES_InSnes9x = true; }