Skip to content

fix(compat): support SM1.13 compiler - #39

Merged
Rushaway merged 4 commits into
srcdslab:mainfrom
Dolly132:sm1-13
Aug 18, 2026
Merged

fix(compat): support SM1.13 compiler#39
Rushaway merged 4 commits into
srcdslab:mainfrom
Dolly132:sm1-13

Conversation

@Dolly132

Copy link
Copy Markdown
Contributor

No description provided.

Dolly132 and others added 4 commits August 15, 2026 16:00
…1.12 and SM1.13

Moving ModeInfo above FM_ConVar/Forwards.sp broke compilation on both
compilers, since ModeInfo's fields need FM_ConVar and FM_Forwards to
be defined first. Restoring ModeInfo/g_ModesInfo to their original
position (after FM_ConVar and Forwards.sp) fixes the missing-type
errors, but FM_ConVar::GetPos() referenced g_ModesInfo before its
declaration point, which SM1.12 rejects for global variables (unlike
functions, which may be forward-referenced). Extracting that lookup
into a free function called from GetPos() breaks the ordering
constraint since functions can be referenced ahead of their
definition.
@Rushaway
Rushaway merged commit fad6edb into srcdslab:main Aug 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants