Added nag when loading a movie without SyncSettings.

This commit is contained in:
scepheo 2014-12-08 22:53:09 +00:00
parent ec58c2d34c
commit 50730ae132
1 changed files with 16 additions and 2 deletions

View File

@ -1946,9 +1946,23 @@ namespace BizHawk.Client.EmuHawk
private void CoreSyncSettings(object sender, RomLoader.SettingsLoadArgs e)
{
if (Global.MovieSession.QueuedMovie != null && !string.IsNullOrWhiteSpace(Global.MovieSession.QueuedMovie.SyncSettingsJson))
if (Global.MovieSession.QueuedMovie != null)
{
e.Settings = ConfigService.LoadWithType(Global.MovieSession.QueuedMovie.SyncSettingsJson);
if (!string.IsNullOrWhiteSpace(Global.MovieSession.QueuedMovie.SyncSettingsJson))
{
e.Settings = ConfigService.LoadWithType(Global.MovieSession.QueuedMovie.SyncSettingsJson);
}
else
{
MessageBox.Show(
"No sync settings found, using currently configured settings for this core.",
"No sync settings found",
MessageBoxButtons.OK,
MessageBoxIcon.Warning
);
e.Settings = Global.Config.GetCoreSyncSettings(e.Core);
}
}
else
{