Compare commits

...

2 Commits

Author SHA1 Message Date
NintenHero f336df7b76
Remove braces from single-line "for" loop 2024-08-11 16:50:08 -05:00
NintenHero 31712565cb
Define Subfile's ints on the same line. 2024-08-11 16:49:30 -05:00
1 changed files with 1 additions and 4 deletions

View File

@ -11,9 +11,7 @@
List<Subfile> subfiles = new(); List<Subfile> subfiles = new();
for (int i = 0; i < fileCount; i++) for (int i = 0; i < fileCount; i++)
{
subfiles.Add(new()); subfiles.Add(new());
}
string path = Path.GetDirectoryName(args[0]) + "\\" + Path.GetFileNameWithoutExtension(args[0]); string path = Path.GetDirectoryName(args[0]) + "\\" + Path.GetFileNameWithoutExtension(args[0]);
Directory.CreateDirectory(path); Directory.CreateDirectory(path);
@ -29,8 +27,7 @@
class Subfile class Subfile
{ {
public string[] name = new string(br.ReadChars(32)).TrimEnd('\0').Split('\0'); public string[] name = new string(br.ReadChars(32)).TrimEnd('\0').Split('\0');
public int start = br.ReadInt32(); public int start = br.ReadInt32(), size = br.ReadInt32();
public int size = br.ReadInt32();
} }
} }
} }