mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 00:12:03 +00:00
erpt: include all known types/categories in autogen
This commit is contained in:
parent
50ea19e7a2
commit
eca5ac01b8
2 changed files with 4 additions and 2 deletions
|
@ -99,6 +99,7 @@
|
|||
HANDLER(RadioStrengthInfo, 58 ) \
|
||||
HANDLER(ErrorInfoAuto, 59 ) \
|
||||
HANDLER(AccessPointInfo, 60 ) \
|
||||
HANDLER(ErrorInfoDefaults, 61 ) \
|
||||
HANDLER(SystemPowerStateInfo, 62 ) \
|
||||
HANDLER(PerformanceInfo, 63 ) \
|
||||
HANDLER(ThrottlingInfo, 64 ) \
|
||||
|
@ -109,6 +110,7 @@
|
|||
HANDLER(RunningApplicationInfo, 69 ) \
|
||||
HANDLER(RunningAppletInfo, 70 ) \
|
||||
HANDLER(FocusedAppletHistoryInfo, 71 ) \
|
||||
HANDLER(CompositorInfo, 72 ) \
|
||||
HANDLER(BatteryChargeInfo, 73 ) \
|
||||
HANDLER(NANDExtendedCsd, 74 ) \
|
||||
HANDLER(NANDPatrolInfo, 75 ) \
|
||||
|
|
|
@ -396,11 +396,11 @@ def main(argc, argv):
|
|||
with open(argv[1]+'.hpp', 'w') as out:
|
||||
out.write(HEADER)
|
||||
out.write('#define AMS_ERPT_FOREACH_FIELD_TYPE(HANDLER) \\\n')
|
||||
for tp in sorted(list(set(types))):
|
||||
for tp in sorted(list(set(types + FIELD_TYPES.keys()))):
|
||||
out.write((' HANDLER(%%-%ds %%-2d) \\\n' % (mt+1)) % (typ_to_string(tp)+',', tp))
|
||||
out.write('\n')
|
||||
out.write('#define AMS_ERPT_FOREACH_CATEGORY(HANDLER) \\\n')
|
||||
for ct in sorted(list(set(cats))):
|
||||
for ct in sorted(list(set(cats + CATEGORIES.keys()))):
|
||||
out.write((' HANDLER(%%-%ds %%-3d) \\\n' % (mc+1)) % (cat_to_string(ct)+',', ct))
|
||||
out.write('\n')
|
||||
out.write('#define AMS_ERPT_FOREACH_FIELD(HANDLER) \\\n')
|
||||
|
|
Loading…
Reference in a new issue