Make TasStateManagerSettings use default values from the config, next step: a ui to change the config values

This commit is contained in:
adelikat 2014-10-17 22:47:30 +00:00
parent f930622b5e
commit 48eb40449c
3 changed files with 8 additions and 1 deletions

View File

@ -526,6 +526,7 @@ namespace BizHawk.Client.Common
// TAStudio Dialog
public ToolDialogSettings TAStudioSettings = new ToolDialogSettings();
public RecentFiles RecentTas = new RecentFiles(8);
public TasStateManagerSettings DefaultTasProjSettings = new TasStateManagerSettings();
public bool AutoloadTAStudio = false;
public bool AutoloadTAStudioProject = false;
public bool TAStudioDrawInput = true;

View File

@ -43,7 +43,7 @@ namespace BizHawk.Client.Common
public TasStateManager(TasMovie movie)
{
_movie = movie;
Settings = new TasStateManagerSettings();
Settings = new TasStateManagerSettings(Global.Config.DefaultTasProjSettings);
var cap = Settings.Cap;

View File

@ -12,6 +12,12 @@ namespace BizHawk.Client.Common
Capacitymb = 512;
}
public TasStateManagerSettings(TasStateManagerSettings settings)
{
SaveGreenzone = settings.SaveGreenzone;
Capacitymb = settings.Capacitymb;
}
/// <summary>
/// Whether or not to save greenzone information to disk
/// </summary>