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

More resilient UFC parsing #750

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gcask
Copy link
Contributor

@gcask gcask commented Mar 1, 2025

Rely on the 'flashing' behavior of the UFC when a value gets processed, instead of hoping for an ENT key to register.

The main benefit is extra stability vis-a-vis Exports, since it removes the dependencies on LuaExportBeforeNextFrame (if this is borked, we only lose LOS stuff).

sidefix: correctly disables MIDS if L16 gets subsenquently disabled.

The gist is to look for the flash,: UFC has value, gets cleared, and gets either value again or ERROR.
We detect the ERROR message as needed, and do nothing if that happens.

It also consolidates how IFF is parsed, fixing escaping the - character in the string.match for those (should have been %-).

Lastly, it accomodates for cases where the display will add/remove leading zeroes by interpreting values as numbers.

Rely on the 'flashing' behavior of the UFC when a value gets processed, instead of hoping for an ENT key to register.

sidefix: correclty disables MIDS if L16 gets subsenquently disabled.
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