From cfff19b808467061f2be92670385d550a0418265 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 5 Oct 2014 12:59:12 +0000 Subject: [PATCH] TasStateManager - add an InitialState property, not used yet and has limited value, but might help with clarity --- .../movie/tasproj/TasStateManager.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs index df5e05b3ce..5a713d91be 100644 --- a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs +++ b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs @@ -63,6 +63,19 @@ namespace BizHawk.Client.Common } } + public byte[] InitialState + { + get + { + if (_movie.StartsFromSavestate) + { + return _movie.BinarySavestate; + } + + return States[0]; + } + } + /// /// Requests that the current emulator state be captured /// Unless force is true, the state may or may not be captured depending on the logic employed by "greenzone" management