From 75ead6e3c4352694a4394539be7edd3cc8aa8523 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Fri, 7 Feb 2020 07:40:33 -0500 Subject: [PATCH] GBHawk: put CGB flag into bk2 for proper parsing --- .../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 357487cc0a..9d9269c60f 100644 --- a/BizHawk.Client.Common/movie/conversions/MovieConversionExtensions.cs +++ b/BizHawk.Client.Common/movie/conversions/MovieConversionExtensions.cs @@ -4,6 +4,7 @@ using System.Linq; using BizHawk.Emulation.Common; using BizHawk.Emulation.Cores.Nintendo.Gameboy; +using BizHawk.Emulation.Cores.Nintendo.GBHawk; using BizHawk.Emulation.Cores.Nintendo.SubNESHawk; using BizHawk.Emulation.Cores.Sega.MasterSystem; using BizHawk.Emulation.Common.IEmulatorExtensions; @@ -330,6 +331,11 @@ namespace BizHawk.Client.Common.MovieConversionExtensions } } + if (Global.Emulator is GBHawk && ((GBHawk)Global.Emulator).is_GBC) + { + movie.HeaderEntries.Add("IsCGBMode", "1"); + } + if (Global.Emulator is Gameboy && ((Gameboy) Global.Emulator).IsCGBMode()) { movie.HeaderEntries.Add("IsCGBMode", "1");