Imported static Kaitai.BlendFile, compressing bunch of lines

This commit is contained in:
Samuele Lorefice
2025-03-11 18:41:27 +01:00
parent 37ebc71cf3
commit 9cbed0a8b8
3 changed files with 28 additions and 24 deletions

View File

@@ -227,7 +227,7 @@ public class Reader {
if (value != null) return value;
//Check if the field is a pointer to another DNA structure
if (dnaTypesDb.ContainsKey(attrib.OriginalType)) {
if (dnaTypesDb.ContainsKey(attrib.OriginalType)) {
if (!attrib.IsPointer) { //It's a structure
//Create a new instance of the DNA structure type
@@ -249,6 +249,7 @@ public class Reader {
pointers.TryAdd(block.MemAddr.ToPointer() + offset, data.ToPointer());
}
}
throw new NotSupportedException($"Unknown type \"{attrib.OriginalType}\"");
}