Skip to content

Commit

Permalink
cleanup braces
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHinrichs committed Sep 11, 2024
1 parent 10e253b commit 9de0ed2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,18 @@ static void Main(string[] args)

string magic = new(br.ReadChars(4));
if (magic != "npk." && magic != ".npk")
{
throw new ArgumentException("This file is not a NERD engine NPK file.");
}

if (magic == ".npk")
{
br.ReadBytes(4);
}

uint metaOffset = br.ReadUInt32();
uint metaSize = br.ReadUInt32();
Subfile[] subfile = new Subfile[metaSize / 0X100];

br.BaseStream.Position = metaOffset;
for (int i = 0; i < subfile.Length; i++)
{
subfile[i] = new();
}

for (int i = 0; i < subfile.Length; i++)
{
Expand Down

0 comments on commit 9de0ed2

Please # to comment.