From 3ce88eaa3baa46766171a48f5093222a22b344bb Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 25 Jan 2020 11:35:33 -0600 Subject: [PATCH] pass config settings into TasSTateManager instead of using Global.Config, now TasMovie incorreclty uses Global.Config, but that's a step --- BizHawk.Client.Common/movie/tasproj/TasMovie.cs | 2 +- BizHawk.Client.Common/movie/tasproj/TasStateManager.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.Common/movie/tasproj/TasMovie.cs b/BizHawk.Client.Common/movie/tasproj/TasMovie.cs index dc6b1940d5..eee964d859 100644 --- a/BizHawk.Client.Common/movie/tasproj/TasMovie.cs +++ b/BizHawk.Client.Common/movie/tasproj/TasMovie.cs @@ -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); diff --git a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs index 2f9c994694..980d60a73e 100644 --- a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs +++ b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs @@ -34,10 +34,10 @@ namespace BizHawk.Client.Common private int FileStateGap => 1 << Settings.FileStateGap; /// loaded core expects savestate size of 0 B - 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) {