Fix autogen convert constants

This commit is contained in:
Agent X 2023-11-11 12:35:32 -05:00
parent 802affd839
commit 281efe57fe
4 changed files with 6 additions and 1 deletions

View file

@ -165,7 +165,7 @@ def process_define(filename, line):
if p.startswith('0x'):
continue
p = re.sub(r'0x[a-fA-F0-9]+', '', p)
if re.search('[a-z]', p) != None and "VERSION_TEXT" not in line:
if re.search('[a-z]', p) != None and "VERSION_TEXT" not in line and "SM64COOPDX_VERSION" not in line:
if 'gCurrentObject' not in line and verbose:
print('UNRECOGNIZED DEFINE: ' + line)
return None

View file

@ -12363,6 +12363,9 @@ MINOR_VERSION_NUMBER = 0
--- @type integer
PATCH_VERSION_NUMBER = 0
--- @type string
SM64COOPDX_VERSION = "v0.1"
--- @type integer
VERSION_NUMBER = 36

View file

@ -4381,6 +4381,7 @@
- MAX_VERSION_LENGTH
- MINOR_VERSION_NUMBER
- PATCH_VERSION_NUMBER
- SM64COOPDX_VERSION
- VERSION_NUMBER
- VERSION_REGION
- VERSION_REGION

View file

@ -4309,6 +4309,7 @@ char gSmluaConstants[] = ""
"COOP_OBJ_FLAG_LUA = (1 << 1)\n"
"COOP_OBJ_FLAG_NON_SYNC = (1 << 2)\n"
"COOP_OBJ_FLAG_INITIALIZED = (1 << 3)\n"
"SM64COOPDX_VERSION = 'v0.1'\n"
"VERSION_TEXT = 'v'\n"
"VERSION_NUMBER = 36\n"
"MINOR_VERSION_NUMBER = 0\n"