Skip to content

Rework remaining legacy config into modern config#3281

Merged
AaronVanGeffen merged 24 commits intoOpenLoco:masterfrom
AaronVanGeffen:config
Oct 14, 2025
Merged

Rework remaining legacy config into modern config#3281
AaronVanGeffen merged 24 commits intoOpenLoco:masterfrom
AaronVanGeffen:config

Conversation

@AaronVanGeffen
Copy link
Copy Markdown
Member

@AaronVanGeffen AaronVanGeffen commented Sep 28, 2025

This reworks the remaining legacy config fields into the modern config struct. This means we can now purge the legacy config entirely.

Currently, this is all done in one PR. Let me know if it would be better to split this up.

@AaronVanGeffen AaronVanGeffen marked this pull request as ready for review September 28, 2025 13:21
@AaronVanGeffen AaronVanGeffen changed the title Rework remaining legacy config int modern config Rework remaining legacy config into modern config Sep 28, 2025

sub_431695(var_F253A0);

if (Config::get().old.countdown != 0xFF)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is interesting is this saying that it would save the config after 255 ticks?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I'm thinking it's a measure to set the initial config file? The property is initiased to 0 so this would only run on first run, I think.

@AaronVanGeffen AaronVanGeffen added the changelog Requires a changelog entry label Oct 13, 2025
@AaronVanGeffen AaronVanGeffen enabled auto-merge (squash) October 14, 2025 09:11
@AaronVanGeffen AaronVanGeffen merged commit 32135d5 into OpenLoco:master Oct 14, 2025
11 checks passed
@AaronVanGeffen AaronVanGeffen deleted the config branch October 14, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog Requires a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants