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:
parent
a64017366c
commit
eb28732087
|
@ -95,11 +95,11 @@ namespace BizHawk.Client.Common.MovieConversionExtensions
|
||||||
movie.EmulatorVersion = VersionInfo.GetEmuVersion();
|
movie.EmulatorVersion = VersionInfo.GetEmuVersion();
|
||||||
movie.SystemID = Global.Emulator.SystemId;
|
movie.SystemID = Global.Emulator.SystemId;
|
||||||
|
|
||||||
var settable = Global.Emulator as ISettable<object, object>;
|
var settable = Global.Emulator as ISettable<object, object>;
|
||||||
if (settable == null)
|
if (settable != null)
|
||||||
throw new NotImplementedException("ISettable");
|
{
|
||||||
|
movie.SyncSettingsJson = ConfigService.SaveWithType(settable.GetSyncSettings());
|
||||||
movie.SyncSettingsJson = ConfigService.SaveWithType(settable.GetSyncSettings());
|
}
|
||||||
|
|
||||||
if (Global.Game != null)
|
if (Global.Game != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue