parent
884110e61a
commit
ef028dfea4
|
@ -20,6 +20,8 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
private void AddTasProjLumps(ZipStateSaver bs, bool isBackup = false)
|
private void AddTasProjLumps(ZipStateSaver bs, bool isBackup = false)
|
||||||
{
|
{
|
||||||
|
// at this point, TasStateManager may be null if we're currently importing a .bk2
|
||||||
|
|
||||||
var settings = JsonConvert.SerializeObject(TasStateManager?.Settings ?? Session.Settings.DefaultTasStateManagerSettings);
|
var settings = JsonConvert.SerializeObject(TasStateManager?.Settings ?? Session.Settings.DefaultTasStateManagerSettings);
|
||||||
bs.PutLump(BinaryStateLump.StateHistorySettings, tw => tw.WriteLine(settings));
|
bs.PutLump(BinaryStateLump.StateHistorySettings, tw => tw.WriteLine(settings));
|
||||||
bs.PutLump(BinaryStateLump.LagLog, tw => LagLog.Save(tw));
|
bs.PutLump(BinaryStateLump.LagLog, tw => LagLog.Save(tw));
|
||||||
|
|
Loading…
Reference in New Issue