Compare commits

...

2 Commits

Author SHA1 Message Date
NintenHero f80e0fdedb
Remove braces from one-line "for" loop 2024-08-11 17:00:59 -05:00
NintenHero 44992f3647
Define Subfile's ints on the same line 2024-08-11 17:00:04 -05:00
1 changed files with 1 additions and 5 deletions

View File

@ -20,9 +20,7 @@ namespace Warspear_Online_Extractor
System.Collections.Generic.List<Subfile> subfiles = new();
for (int i = 0; i < count; i++)
{
subfiles.Add(new());
}
string path = Path.GetDirectoryName(args[0]) + "//" + Path.GetFileNameWithoutExtension(args[0]) + "//";
foreach (Subfile file in subfiles)
@ -37,9 +35,7 @@ namespace Warspear_Online_Extractor
class Subfile
{
public int start = br.ReadInt32();
public int size = br.ReadInt32();
int unknown = br.ReadInt32();
public int start = br.ReadInt32(), size = br.ReadInt32(), unknown = br.ReadInt32();
byte unknown2 = br.ReadByte();
public string name = new string(br.ReadChars(55)).TrimEnd('\0');
}