Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions ContainerReader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Program
{
static void Main(string[] args)
{
if(args.Length != 1)
if (args.Length != 1)
{
Console.WriteLine("ContainerReader\nA program that prints infomation about Windows Containers.index files, used to store metadata (such as the package family name, guid, and filename) about configuration/save game files for UWP apps and games.\nContainer \"filenames\" are actually directories, as they can have more than one file inside of them.\nUsage: ContainerReader containers.index\nNOTE: Doesn't, at the current time, handle all forms of containers.index. Will add support, but most are supported.");
return;
Expand Down Expand Up @@ -116,13 +116,8 @@ static void Main(string[] args)

for (int y = 0; y < subNumFiles; y++)
{
string subfileName = BinaryReaderHelper.ReadUnicodeString(subReader);

// Ignore all the white space of the block
while (subReader.ReadByte() == 0x0) { }

// Go back to a position after reading a non-empty byte
subReader.BaseStream.Position--;
// subFileName has a fixed length
string subfileName = BinaryReaderHelper.ReadUnicodeString(subReader, 0x40);

// The sub guid folder that the files reside in
byte[] subGuid1 = subReader.ReadBytes(4);
Expand Down Expand Up @@ -175,4 +170,4 @@ static void Main(string[] args)
}
}
}
}
}