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:
parent
763d5870f2
commit
3ce88eaa3b
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue