Load and Seting sync settings from a movie when loading it. Still to do: Rip out movies 1.0 hacks

This commit is contained in:
adelikat 2014-05-18 15:54:56 +00:00
parent 5634b085cf
commit fe7a2b44f8
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,8 @@ using BizHawk.Emulation.Cores.Sega.Genesis;
using BizHawk.Emulation.Cores.Sega.Saturn;
using BizHawk.Emulation.Cores.Sony.PSP;
using Newtonsoft.Json;
namespace BizHawk.Client.EmuHawk
{
partial class MainForm
@ -39,6 +41,9 @@ namespace BizHawk.Client.EmuHawk
try
{
// Get Sync settings and put into hack variable
_syncSettingsHack = JsonConvert.DeserializeObject(Global.MovieSession.Movie.Header.SyncSettingsJson, Global.Emulator.GetSyncSettings().GetType());
// movie 1.0 hack: restore sync settings for the only core that fully supported them in movie 1.0
if (!record && Global.Emulator.SystemId == "Coleco")
{
@ -54,6 +59,7 @@ namespace BizHawk.Client.EmuHawk
else if (!record && Global.Emulator.SystemId == "NES")
{
var quicknesName = ((CoreAttributes)Attribute.GetCustomAttribute(typeof(QuickNES), typeof(CoreAttributes))).CoreName;
if (Global.MovieSession.Movie.Header[HeaderKeys.CORE] == quicknesName)
{
Global.Config.NES_InQuickNES = true;