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

Add CMake functionality to allow a port to modify what LUS uses for CVar names #527

Merged
merged 5 commits into from
Apr 30, 2024

Conversation

Malkierian
Copy link
Contributor

@Malkierian Malkierian commented Apr 28, 2024

This utilizes CMake variables and definitions. On LUS's side, the definitions default to what they currently are; no changes without input from a port. They use set(CACHE) to allow for being lower priority.

All a port has to do is implement a custom cmake file that defines the same variables using non-cache set() so that the variable usage later finds them before looking in the cache for LUS's definitions.

EDIT: As a side note, only the prefixes for gControllers and gAdvancedResolution are configurable. Their sub-variables remain fixed in LUS.

…Var names.

Utilize CMake definitions in LUS code.
Copy link
Collaborator

@briaguya-ai briaguya-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Left a couple naming suggestions and a question

@briaguya-ai briaguya-ai merged commit 2b7ecfa into Kenix3:main Apr 30, 2024
5 checks passed
@Malkierian Malkierian deleted the cvar-redefines branch April 30, 2024 04:00
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.

3 participants