diff --git a/LegoBlobReader/LegoBlobReader.cpp b/LegoBlobReader/LegoBlobReader.cpp index 17e61ca..ce3558f 100644 --- a/LegoBlobReader/LegoBlobReader.cpp +++ b/LegoBlobReader/LegoBlobReader.cpp @@ -220,6 +220,7 @@ static void ParseBuffer(BinaryReader& reader) // read class infos uint32 class_block_size = reader.read(0); + uint32 end_of_class = reader.get_read_offset() + class_block_size; std::string classlist = reader.read_string(); uint32 class_count = reader.read(0); @@ -275,6 +276,11 @@ static void ParseBuffer(BinaryReader& reader) } } + uint32 end_of_classes = reader.read(0); // 1? Not sure what this is, but need it to match the offset the class block + // if this was the start of another class - it would be the class size, which I take to mean '1' means stop + + printf("\n\n-=-=-=-=-\nSANITY - %u == %u\n-=-=-=-=-\n\n", reader.get_read_offset(), end_of_class); + DisplayProgress(reader); }