Skip to content

Commit 2c15df2

Browse files
libretroadminLibretroAdmin
authored andcommitted
tools/settings_migrate_group: skip the enum stage when every row is a reference
An all-reference migration owns no enum members; the marker splice would find nothing to replace.
1 parent 63dd3d3 commit 2c15df2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/settings_migrate_group.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ def _plains(text):
697697
print(" enum stage skipped: %s guard mismatch enum=%s def=%s" % (_T, sorted(_et), sorted(_dt)))
698698
_enum_ok = False; break
699699

700+
if not enum_rows:
701+
_enum_ok = False
702+
print('gate: enum stage - nothing to consolidate (all rows are references)')
700703
if _enum_ok:
701704
MARK = '/*__SETTINGS_DEF_ENUM_MARK__*/'
702705
_first = True

0 commit comments

Comments
 (0)