Skip to content

Commit

Permalink
ci: debug update extra with meta
Browse files Browse the repository at this point in the history
  • Loading branch information
cengelha committed Sep 10, 2023
1 parent a8f0009 commit c9f5a99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libNOM.io/PlatformSteam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,12 @@ protected override void UpdateContainerWithMetaInformation(Container container,
// 86. EMPTY ( 15) // SAVE_FORMAT_3 // may contain additional junk data
// (360)

Console.WriteLine($"UpdateContainerWithMetaInformation 1: {disk.Length}");

// Do not write wrong data in case a step before failed.
if (decompressed.TryGetValue(0, out var header) && header == META_HEADER)
{
Console.WriteLine($"UpdateContainerWithMetaInformation 2: {header}");
// Vanilla data always available but not always set depending on the SAVE_FORMAT.
container.Extra = container.Extra with
{
Expand All @@ -319,6 +322,8 @@ protected override void UpdateContainerWithMetaInformation(Container container,
DifficultyPreset = disk[344],
};
}
Console.WriteLine($"UpdateContainerWithMetaInformation 3: {container.Extra.SaveName}");
Console.WriteLine($"UpdateContainerWithMetaInformation 4: {container.SaveName}");

// Only write if all three values are in their valid ranges.
if (container.Extra.BaseVersion.IsBaseVersion() && container.Extra.GameMode.IsGameMode() && container.Extra.Season.IsSeason())
Expand Down

0 comments on commit c9f5a99

Please sign in to comment.