Sanity check that data read for classes matches what the file told me it should be;
This commit is contained in:
@ -220,6 +220,7 @@ static void ParseBuffer(BinaryReader& reader)
|
||||
|
||||
// read class infos
|
||||
uint32 class_block_size = reader.read<uint32>(0);
|
||||
uint32 end_of_class = reader.get_read_offset() + class_block_size;
|
||||
std::string classlist = reader.read_string();
|
||||
uint32 class_count = reader.read<uint32>(0);
|
||||
|
||||
@ -275,6 +276,11 @@ static void ParseBuffer(BinaryReader& reader)
|
||||
}
|
||||
}
|
||||
|
||||
uint32 end_of_classes = reader.read<uint32>(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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user