Skip to content

Commit b50b17c

Browse files
dberlinmarcan
authored andcommitted
Support non-constant unknown values in adt.py
On m3, these previouly expected-to-be-constant fields have exciting non-constant values. This updates adt.py to allow them to be non-constant. The second field is also really a flags field, though i could not tell you all the flags involved. Signed-off-by: Daniel Berlin <[email protected]>
1 parent c45da55 commit b50b17c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

proxyclient/m1n1/adt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@
112112
))
113113

114114
PMGRPowerDomains = SafeGreedyRange(Struct(
115-
"unk" / Const(0, Int8ul),
115+
"unk" / Int8ul,
116116
"perf_idx" / Int8ul,
117117
"perf_block" / Int8ul,
118118
"id" / Int8ul,
119-
Const(0, Int32ul),
119+
"flags" / Int32ul,
120120
"name" / PaddedString(16, "ascii"),
121121
))
122122

0 commit comments

Comments
 (0)