From a539f9b5847d34c2f3c390e9109890797d164b76 Mon Sep 17 00:00:00 2001 From: MichaelHinrichs Date: Sat, 20 Apr 2024 12:17:34 -0500 Subject: [PATCH] Adjust spacing --- Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Program.cs b/Program.cs index d3680fe..edb592a 100644 --- a/Program.cs +++ b/Program.cs @@ -11,6 +11,7 @@ namespace Islet_Online_Unpacker using FileStream input = File.OpenRead(args[0]); BinaryReader br = new(input); Directory.CreateDirectory(Path.GetDirectoryName(input.Name) + "//" + Path.GetFileNameWithoutExtension(input.Name)); + while (br.BaseStream.Position < br.BaseStream.Length) { int size = br.ReadInt32(); @@ -36,6 +37,7 @@ namespace Islet_Online_Unpacker subfile.name = new(br.ReadChars(br.ReadInt16())); subfiles.Add(subfile); } + foreach (Subfile sub in subfiles) { br.BaseStream.Position = sub.start; @@ -65,6 +67,7 @@ namespace Islet_Online_Unpacker bw.Close(); } } + struct Subfile { public int isCompressed;