Removed constructor from FourCC, made free function. Modified codegen to match, and fixed a small formatting issue. Created UnknownHeader for use in a single read approach.

This commit is contained in:
2022-10-27 11:13:10 +11:00
parent 50074b6f0d
commit 93a0bad14d
8 changed files with 387 additions and 245 deletions

View File

@@ -164,7 +164,7 @@ record_fourcc_map = Map(
first_name = "record_type",
second_name = "fourcc",
reverse = True,
formats = ["RecordType::{0}", ", FourCC(\"{0}\")"],
formats = ["RecordType::{0}", ", fourcc_from_cstr(\"{0}\")"],
data = [(x['fourcc'], ) for x in record_data]
)
flag_desc_map = Map(