From 44dc9518cffae8060831b84456e3fab26a200509 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 28 Feb 2016 10:21:18 -0500 Subject: [PATCH] capture Sega CD flag in movies --- .../movie/conversions/MovieConversionExtensions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BizHawk.Client.Common/movie/conversions/MovieConversionExtensions.cs b/BizHawk.Client.Common/movie/conversions/MovieConversionExtensions.cs index 284e9d6233..7b7be4bad5 100644 --- a/BizHawk.Client.Common/movie/conversions/MovieConversionExtensions.cs +++ b/BizHawk.Client.Common/movie/conversions/MovieConversionExtensions.cs @@ -6,6 +6,7 @@ using BizHawk.Emulation.Common; using BizHawk.Emulation.Cores.Nintendo.Gameboy; using BizHawk.Emulation.Cores.Sega.MasterSystem; using BizHawk.Emulation.Common.IEmulatorExtensions; +using BizHawk.Emulation.Cores.Consoles.Sega.gpgx; namespace BizHawk.Client.Common.MovieConversionExtensions { @@ -317,6 +318,11 @@ namespace BizHawk.Client.Common.MovieConversionExtensions movie.HeaderEntries.Add("IsSGMode", "1"); } + if (Global.Emulator is GPGX && (Global.Emulator as GPGX).IsSegaCD) + { + movie.HeaderEntries.Add("IsSegaCDMode", "1"); + } + movie.Core = ((CoreAttributes)Attribute .GetCustomAttribute(Global.Emulator.GetType(), typeof(CoreAttributes))) .CoreName;