Skip to content

Commit 5e2e537

Browse files
hoshinolinamarcan
authored andcommitted
m1n1.adt: Add DAPF decoding
There's a weird thing with DCP DAPF entries being larger... but we don't use them anyway? Signed-off-by: Asahi Lina <[email protected]>
1 parent e1bb8e8 commit 5e2e537

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

proxyclient/m1n1/adt.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,21 @@
205205
"value" / Hex(Int64ul),
206206
)
207207

208+
DAPFT8110 = Struct(
209+
"start" / Hex(Int64ul),
210+
"end" / Hex(Int64ul),
211+
"r20" / Hex(Int32ul),
212+
"unk1" / Hex(Int32ul),
213+
"r4" / Hex(Int32ul),
214+
"unk2" / Array(5, Hex(Int32ul)),
215+
"unk3" / Hex(Int8ul),
216+
"r0h" / Hex(Int8ul),
217+
"r0l" / Hex(Int8ul),
218+
"unk4" / Hex(Int8ul),
219+
# ???
220+
"pad" / If(this.r20 == 0x20, Hex(Int32ul)),
221+
)
222+
208223
DEV_PROPERTIES = {
209224
"pmgr": {
210225
"*": {
@@ -301,7 +316,12 @@
301316
"*": {
302317
"apcie-*-tunables": GreedyRange(TunableLocal),
303318
}
304-
}
319+
},
320+
"dart*": {
321+
"*": {
322+
"dapf-instance-*": GreedyRange(DAPFT8110),
323+
}
324+
},
305325
}
306326

307327
def parse_prop(node, path, node_name, name, v, is_template=False):

0 commit comments

Comments
 (0)