Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for GZDoom >= 4.11.1 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nashmuhandes
Copy link

GZDoom 4.11.1 introduced some API breakage that made INIFile not compile. Please see the commit messages for more details.

(Addendum: in the commit messages, I erroneously refered to GZDoom 4.13.2 instead of GZDoom 4.11.1, as that was the engine version I was doing testing with. Technically, the actual API breakage occurred at GZDoom 4.11.1.)

- Functions cannot directly return a multi-return function; these were apparently silently broken since the beginning, and GZDoom has since opted to error these out since GZDoom 4.11.1. The fix for this to multi-assign some local variables, and then return those instead. ZDoom/gzdoom#1892
- Replace some deprecated string/character functions.
- Be explicit with uints, as the engine is now more strict regarding those.
- "default" is a reserved ZScript keyword, change all instances of those to "def".
- For non-empty-string comparisons, explicitly use the .Length() function.
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.

1 participant