Skip to content

Commit e32d6e8

Browse files
committed
pdblib: make color id Int8, as some dbs appear to have two Int8 fields
1 parent ce26b1e commit e32d6e8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

prodj/pdblib/color.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from construct import Struct, Int16ub, Padding
1+
from construct import Struct, Int8ul, Padding
22
from .piostring import PioString
33

44
Color = Struct(
55
Padding(4),
6-
"id" / Int16ub,
6+
"id_dup" / Int8ul, # set on some dbs, equals id
7+
"id" / Int8ul,
78
Padding(2),
89
"name" / PioString
910
)

0 commit comments

Comments
 (0)