diff --git a/autogen/convert_constants.py b/autogen/convert_constants.py index 2a9934a17..49b25b39b 100644 --- a/autogen/convert_constants.py +++ b/autogen/convert_constants.py @@ -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 diff --git a/autogen/lua_definitions/constants.lua b/autogen/lua_definitions/constants.lua index d120f4736..39ae72e54 100644 --- a/autogen/lua_definitions/constants.lua +++ b/autogen/lua_definitions/constants.lua @@ -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 diff --git a/docs/lua/constants.md b/docs/lua/constants.md index f180d3272..d9519529f 100644 --- a/docs/lua/constants.md +++ b/docs/lua/constants.md @@ -4381,6 +4381,7 @@ - MAX_VERSION_LENGTH - MINOR_VERSION_NUMBER - PATCH_VERSION_NUMBER +- SM64COOPDX_VERSION - VERSION_NUMBER - VERSION_REGION - VERSION_REGION diff --git a/src/pc/lua/smlua_constants_autogen.c b/src/pc/lua/smlua_constants_autogen.c index 50664ee0b..b502d0d17 100644 --- a/src/pc/lua/smlua_constants_autogen.c +++ b/src/pc/lua/smlua_constants_autogen.c @@ -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"