remove option to not save SavestateHistory in .tasproj files, turns out the pre-zwinder implemetnation never exposed a way to turn this off either (except direct json editing). And it seems questionable, we have export to .bk2, clear history, auto-save options, etc if you need a historyless file
This commit is contained in:
parent
296b321796
commit
2a4cba4f7e
|
@ -41,7 +41,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
bs.PutLump(BinaryStateLump.Session, tw => tw.WriteLine(JsonConvert.SerializeObject(TasSession)));
|
||||
|
||||
if (TasStateManager.Settings.SaveStateHistory && !isBackup)
|
||||
if (!isBackup)
|
||||
{
|
||||
bs.PutLump(BinaryStateLump.StateHistory, bw => TasStateManager.SaveStateHistory(bw));
|
||||
}
|
||||
|
@ -165,13 +165,10 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
});
|
||||
|
||||
if (TasStateManager.Settings.SaveStateHistory)
|
||||
bl.GetLump(BinaryStateLump.StateHistory, false, delegate(BinaryReader br, long length)
|
||||
{
|
||||
bl.GetLump(BinaryStateLump.StateHistory, false, delegate(BinaryReader br, long length)
|
||||
{
|
||||
TasStateManager = ZwinderStateManager.Create(br, TasStateManager.Settings);
|
||||
});
|
||||
}
|
||||
TasStateManager = ZwinderStateManager.Create(br, TasStateManager.Settings);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace BizHawk.Client.Common
|
|||
PriorityTargetFrameLength = settings.PriorityTargetFrameLength;
|
||||
|
||||
AncientStateInterval = settings.AncientStateInterval;
|
||||
SaveStateHistory = settings.SaveStateHistory;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -69,9 +68,5 @@ namespace BizHawk.Client.Common
|
|||
[DisplayName("Ancient State Interval")]
|
||||
[Description("How often to maintain states when outside of Current and Recent intervals")]
|
||||
public int AncientStateInterval { get; set; } = 5000;
|
||||
|
||||
[DisplayName("Save Savestate History")]
|
||||
[Description("Whether or not to save savestate history into .tasproj files")]
|
||||
public bool SaveStateHistory { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue