VBM import: import gambatte movie if gambatte is the loaded core

This commit is contained in:
alyosha-tas 2020-03-16 16:16:32 -04:00
parent 5fdf7e09f0
commit ab6caa70d2
1 changed files with 10 additions and 4 deletions

View File

@ -3,6 +3,7 @@ using System.IO;
using BizHawk.Emulation.Common;
using BizHawk.Emulation.Cores.Nintendo.GBA;
using BizHawk.Emulation.Cores.Nintendo.GBHawk;
using BizHawk.Emulation.Cores.Nintendo.Gameboy;
namespace BizHawk.Client.Common.movie.import
{
@ -276,10 +277,15 @@ namespace BizHawk.Client.Common.movie.import
}
else
{
Global.Config.GbUseGbHawk = true;
Result.Movie.SyncSettingsJson = ConfigService.SaveWithType(new GBHawk.GBSyncSettings());
}
if (Global.Config.GbUseGbHawk || Global.Config.UseSubGBHawk)
{
Result.Movie.SyncSettingsJson = ConfigService.SaveWithType(new GBHawk.GBSyncSettings());
}
else
{
Result.Movie.SyncSettingsJson = ConfigService.SaveWithType(new Gameboy.GambatteSyncSettings());
}
}
}
private static SimpleController GbController()