diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/DefaultGreenzoneSettings.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/DefaultGreenzoneSettings.cs index f7b6811f4d..648ca7e9b3 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/DefaultGreenzoneSettings.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/DefaultGreenzoneSettings.cs @@ -7,21 +7,22 @@ namespace BizHawk.Client.EmuHawk { public partial class DefaultGreenzoneSettings : Form { - private readonly MovieConfig _movieSettings; + private readonly Action _saveSettings; private TasStateManagerSettings _settings; - public DefaultGreenzoneSettings(MovieConfig movieSettings) + public DefaultGreenzoneSettings(TasStateManagerSettings settings, Action saveSettings) { InitializeComponent(); Icon = Properties.Resources.TAStudioIcon; - _movieSettings = movieSettings; - _settings = new TasStateManagerSettings(movieSettings.DefaultTasStateManagerSettings); + + _saveSettings = saveSettings; + _settings = settings; SettingsPropertyGrid.SelectedObject = _settings; } private void OkBtn_Click(object sender, EventArgs e) { - _movieSettings.DefaultTasStateManagerSettings = _settings; + _saveSettings(_settings); Close(); } diff --git a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs index e23b8e06ce..d566ed78a9 100644 --- a/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs +++ b/src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs @@ -1023,7 +1023,9 @@ namespace BizHawk.Client.EmuHawk private void DefaultStateSettingsMenuItem_Click(object sender, EventArgs e) { - new DefaultGreenzoneSettings(Config.Movies) + new DefaultGreenzoneSettings( + new TasStateManagerSettings(Config.Movies.DefaultTasStateManagerSettings), + s => { Config.Movies.DefaultTasStateManagerSettings = s; }) { Location = this.ChildPointToScreen(TasView) }.ShowDialog();