2
0
Fork 0
mirror of https://github.com/AsahiLinux/m1n1 synced 2025-02-24 19:37:20 +00:00
m1n1/proxyclient/experiments/agx_dumpstructs.py
Asahi Lina cfca18b83a experiments: Add misc AGX experiments
A lot of these are broken/out of date with the current code, but it's
good to have them committed...

Signed-off-by: Asahi Lina <lina@asahilina.net>
2022-08-17 15:00:00 +09:00

15 lines
459 B
Python

#!/usr/bin/env python3
# SPDX-License-Identifier: MIT
import sys, pathlib, time
sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
from m1n1.constructutils import *
from m1n1.fw.agx import initdata
#for v in initdata.__all__:
for v in initdata.__dict__:
struct = getattr(initdata, v)
if isinstance(struct, type) and issubclass(struct, ConstructClass) and struct is not ConstructClass:
print(struct.to_rust())
print()