pass config settings into TasSTateManager instead of using Global.Config, now TasMovie incorreclty uses Global.Config, but that's a step

This commit is contained in:
adelikat 2020-01-25 11:35:33 -06:00
parent 763d5870f2
commit 3ce88eaa3b
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ namespace BizHawk.Client.Common
}
ChangeLog = new TasMovieChangeLog(this);
TasStateManager = new TasStateManager(this);
TasStateManager = new TasStateManager(this, Global.Config.DefaultTasProjSettings);
Session = new TasSession();
Header[HeaderKeys.MOVIEVERSION] = "BizHawk v2.0 Tasproj v1.0";
Markers = new TasMovieMarkerList(this);

View File

@ -34,10 +34,10 @@ namespace BizHawk.Client.Common
private int FileStateGap => 1 << Settings.FileStateGap;
/// <exception cref="InvalidOperationException">loaded core expects savestate size of <c>0 B</c></exception>
public TasStateManager(TasMovie movie)
public TasStateManager(TasMovie movie, TasStateManagerSettings settings)
{
_movie = movie;
Settings = new TasStateManagerSettings(Global.Config.DefaultTasProjSettings);
Settings = new TasStateManagerSettings(settings);
if (_movie.StartsFromSavestate)
{