Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of changes #14

Merged
merged 13 commits into from
Jan 17, 2024
4 changes: 2 additions & 2 deletions OpenLocoTool/DatFileParsing/ObjectAnnotator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static IList<Annotation> Annotate(byte[] bytelist, out byte[] fullData)
fullData =
[
.. bytelist[..runningCount],
.. SawyerStreamReader.Decode(objectHeader.Encoding, bytelist.AsSpan()[runningCount..(int)(runningCount + objectHeader.DataLength)]),
.. SawyerStreamReader.Decode(objectHeader.Encoding, bytelist[runningCount..(int)(runningCount + objectHeader.DataLength)]),
];

var locoStruct = SawyerStreamReader.GetLocoStruct(s5Header.ObjectType, fullData.AsSpan()[runningCount..]);
Expand Down Expand Up @@ -137,7 +137,7 @@ public static IList<Annotation> AnnotateG1Data(byte[] fullData, int runningCount
return annotations;
}

public static int AnnotateStringTable(byte[] fullData, int runningCount, ILocoStruct locoStruct, IList<Annotation> annotations)
static int AnnotateStringTable(byte[] fullData, int runningCount, ILocoStruct locoStruct, IList<Annotation> annotations)
{
var root = new Annotation("String Table", runningCount, 1);
annotations.Add(root);
Expand Down
Loading
Loading