Add comment to `TasMovie.AddTasProjLumps`

fixes 884110e61
This commit is contained in:
YoshiRulz 2024-08-29 13:11:27 +10:00
parent 884110e61a
commit ef028dfea4
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ namespace BizHawk.Client.Common
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);
bs.PutLump(BinaryStateLump.StateHistorySettings, tw => tw.WriteLine(settings));
bs.PutLump(BinaryStateLump.LagLog, tw => LagLog.Save(tw));