mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fix convert_constants.py on Python 3.12
This commit is contained in:
parent
e6880a5fee
commit
96018588cd
4 changed files with 6 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ def process_define(filename, line):
|
||||||
if p.startswith('0x'):
|
if p.startswith('0x'):
|
||||||
continue
|
continue
|
||||||
p = re.sub(r'0x[a-fA-F0-9]+', '', p)
|
p = re.sub(r'0x[a-fA-F0-9]+', '', p)
|
||||||
if re.search('[a-z]', p) != None and "VERSION_TEXT" not in line and "SM64COOPDX_VERSION" not in line:
|
if re.search(r'[a-z]', p) != None and "VERSION_TEXT" not in line and "SM64COOPDX_VERSION" not in line:
|
||||||
if 'gCurrentObject' not in line and verbose:
|
if 'gCurrentObject' not in line and verbose:
|
||||||
print('UNRECOGNIZED DEFINE: ' + line)
|
print('UNRECOGNIZED DEFINE: ' + line)
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
|
|
@ -5765,6 +5765,9 @@ PLAYER_INTERACTIONS_SOLID = 1
|
||||||
--- @type PlayerInteractions
|
--- @type PlayerInteractions
|
||||||
PLAYER_INTERACTIONS_PVP = 2
|
PLAYER_INTERACTIONS_PVP = 2
|
||||||
|
|
||||||
|
--- @type integer
|
||||||
|
MAX_DESCRIPTION_STRING = 20
|
||||||
|
|
||||||
--- @type integer
|
--- @type integer
|
||||||
MAX_RX_SEQ_IDS = 256
|
MAX_RX_SEQ_IDS = 256
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2072,6 +2072,7 @@
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
## [network_player.h](#network_player.h)
|
## [network_player.h](#network_player.h)
|
||||||
|
- MAX_DESCRIPTION_STRING
|
||||||
- MAX_RX_SEQ_IDS
|
- MAX_RX_SEQ_IDS
|
||||||
- NETWORK_PLAYER_PING_TIMEOUT
|
- NETWORK_PLAYER_PING_TIMEOUT
|
||||||
- NETWORK_PLAYER_TIMEOUT
|
- NETWORK_PLAYER_TIMEOUT
|
||||||
|
|
|
||||||
|
|
@ -2135,6 +2135,7 @@ char gSmluaConstants[] = ""
|
||||||
"NETWORK_PLAYER_PING_TIMEOUT = 3\n"
|
"NETWORK_PLAYER_PING_TIMEOUT = 3\n"
|
||||||
"MAX_RX_SEQ_IDS = 256\n"
|
"MAX_RX_SEQ_IDS = 256\n"
|
||||||
"USE_REAL_PALETTE_VAR = 0xFF\n"
|
"USE_REAL_PALETTE_VAR = 0xFF\n"
|
||||||
|
"MAX_DESCRIPTION_STRING = 20\n"
|
||||||
"NPT_UNKNOWN = 0\n"
|
"NPT_UNKNOWN = 0\n"
|
||||||
"NPT_LOCAL = 1\n"
|
"NPT_LOCAL = 1\n"
|
||||||
"NPT_SERVER = 2\n"
|
"NPT_SERVER = 2\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue