-
Notifications
You must be signed in to change notification settings - Fork 152
Port Cvar_Prefix.h and ConfigUpdater from SoH #1339
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
Open
Glought
wants to merge
37
commits into
HarbourMasters:develop
Choose a base branch
from
Glought:cvar_prefixes
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9995571 to
46f4802
Compare
45fedd6 to
c3a10dc
Compare
Added "CVAR_PREFIX_GAMEPLAY_STATS" and "CVAR_PREFIX_TIME_DISPLAY" to "2ship-cvars.cmake"
Added Include "Cvar_Prefixes.h" to "AudioCollection.cpp" and "AudioEditor.cpp"
Changed code that uses "gOpenWindows." to the "CVAR_WINDOW" macro.
Removed "CVAR_PREFIX_RANDOMIZER_ENHANCEMENT" macro. Removed "CVAR_PREFIX_RANDOMIZER_SETTING" macro. Added "CVAR_RANDOMIZER" macro to "cvar_prefixes.h" Kept "CVAR_RANDOMIZER_ENHANCEMENT" and "CVAR_RANDOMIZER_SETTING" macros for future use. Changed code that uses "gRando." to the "CVAR_RANDOMIZER" macro.
Changed lines that used "CFG_TRACKER_ITEM" to the "CVAR_TRACKER_ITEM" macro.
"CVAR_TRACKER_CHECK" macro in "CheckTracker.cpp".
"gWindows", and "ItemTracker" Added "gTrackers" to "defaultsPresetJ" and "TagMap".
the "CVAR_SETTING("Graphics.AdvancedResolution.*") macro.
…LS("CollisionViewer.*")" macro.
…ntLog.*")" macro.
Cvar_Prefix macro Added a Include guard to "cvar_prefixes.h"
Changed code that uses "CVAR_SETTING("TimeSplits.*)" macro to use the
"CVAR_TRACKER_TIMESPLITS" macro.
"CVAR_SETTING("Notifications.*)" macro
"CVAR_SETTING("DisplayOverlay.*)" macro.
"CVAR_SETTING("Graphics.InterpolationFPS")" macro.
"CVAR_SETTING("Graphics.MatchRefreshRate")" macro.
"gEventLog", and "gNotifications".
"CVAR_AUDIO("*")" macro.
"CVAR_ENHANCEMENT("*")" macro.
"CVAR_DEVELOPER_TOOLS("*")" macro.
"CVAR_TRACKER_ITEM("*")" macro.
"CVAR_WINDOW("*")" macro.
"CVAR_SETTING("*")" macro.
"cvar_prefixes.h" Add #include "2s2h/cvar_prefixes.h" to to files that uses a Cvar_Prefix macro.
64ce3ff to
245c6dc
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have port over Cvar_Prefix.h from SoH.
While working on my other PR #1325 I saw inconsistency with the Cvar naming
Example
In BenMenu.cpp:
I thought I'll help by implementing how its done in SoH.
With this lines like
Before:
After
Moved Cvars:
I have reorganized CVars
Configuration Migration
To make this as seamless I have ported over ConfigUpdater from SoH.
I have set it up to Migrate the Cvars I moved.
Here is a "2ship2harkinian.json" file for testing it has everything enabled.
2ship2harkinian.json
Build Artifacts