when setting IMovie.SyncSettingsJson, simply do not set it if the core is not an ISettable, rather than throwing an exception

This commit is contained in:
adelikat 2014-10-19 01:39:43 +00:00
parent a64017366c
commit eb28732087
1 changed files with 5 additions and 5 deletions

View File

@ -95,11 +95,11 @@ namespace BizHawk.Client.Common.MovieConversionExtensions
movie.EmulatorVersion = VersionInfo.GetEmuVersion();
movie.SystemID = Global.Emulator.SystemId;
var settable = Global.Emulator as ISettable<object, object>;
if (settable == null)
throw new NotImplementedException("ISettable");
movie.SyncSettingsJson = ConfigService.SaveWithType(settable.GetSyncSettings());
var settable = Global.Emulator as ISettable<object, object>;
if (settable != null)
{
movie.SyncSettingsJson = ConfigService.SaveWithType(settable.GetSyncSettings());
}
if (Global.Game != null)
{