private static void ParseFileReference(TextParser parser, ResGroup @group, string fullPath) { @group.AddFile(fullPath); parser.ConsumeString(); if (parser.Lexem == "{") { //TODO: make a block handler parser.ConsumeBlock(); } }
private void ParseChildGroups(BinaryParser parser, ResGroup resGroup) { byte num = parser.ConsumeByte(); while (num > 0) { string path = parser.ConsumeStringZ(); if (!string.IsNullOrEmpty(path)) { resGroup.AddFile(path); } { if (0 != parser.ConsumeUInt32()) { throw new FormatException(); } } { if (0x00001000 != parser.ConsumeInt32()) { throw new FormatException(); } } { if (0xd9794596 != parser.ConsumeUInt32()) { throw new FormatException(); } } --num; } }