From ba17c1fe2b91357d1f603b6c4331617360283e92 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 19 Apr 2020 14:51:45 -0500 Subject: [PATCH] MovieSession - simplify gambatte name getting --- BizHawk.Client.Common/movie/MovieSession.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/movie/MovieSession.cs b/BizHawk.Client.Common/movie/MovieSession.cs index e5c6b7773d..cbed778a8c 100644 --- a/BizHawk.Client.Common/movie/MovieSession.cs +++ b/BizHawk.Client.Common/movie/MovieSession.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.IO; using BizHawk.Client.Common.MovieConversionExtensions; using BizHawk.Emulation.Common; +using BizHawk.Emulation.Cores; using BizHawk.Emulation.Cores.Nintendo.Gameboy; namespace BizHawk.Client.Common @@ -437,8 +438,7 @@ namespace BizHawk.Client.Common private void HandlePlaybackEnd() { - var gambatteName = ((CoreAttribute)Attribute.GetCustomAttribute(typeof(Gameboy), typeof(CoreAttribute))).CoreName; - if (Movie.Core == gambatteName) + if (Movie.Core == CoreNames.Gambatte) { var movieCycles = Convert.ToUInt64(Movie.HeaderEntries[HeaderKeys.CycleCount]); var coreCycles = ((Gameboy)_emulator).CycleCount;