1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-07-02 00:57:46 +00:00

Add temporary workaround for writing TerritoryType

Of their packed boolean columns has 3 extra bytes at the end... for some
reason. Just like the other test case, I added a temporary workaround
for it.
This commit is contained in:
Joshua Goins 2025-06-21 17:10:28 -04:00
parent b7cd6c6c7b
commit 70ebe7d03d

View file

@ -174,6 +174,14 @@ pub fn write_rows(rows: &Vec<ExcelRow>, exh: &EXH) -> BinResult<()> {
{ {
0u32.write_le(writer).unwrap(); 0u32.write_le(writer).unwrap();
} }
// TODO: temporary workaround until i can figure out why this *specific* packed boolean column in TerritoryType has three extra bytes at the end
if definition.offset == 60
&& definition.data_type == ColumnDataType::PackedBool0
&& column_definitions.len() == 44
{
[0u8; 3].write_le(writer).unwrap();
}
} }
}; };