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

GameConfigLoader: Map whole sections, not just individual keys #6269

Merged
merged 2 commits into from
Dec 24, 2017

Conversation

JosJuice
Copy link
Member

There are two reasons for this change:

  1. It removes many repetitive lines of code.

  2. I think it's a good idea to enable the use of old-style section names even for settings that previously haven't been settable in game INIs. Mixing the two styles in INIs (using the new style only for new settings) is not ideal, and people on the forums don't even seem to know that the new style exists (nobody knew a way to set ubershader settings per game, for instance). Encouraging everyone to start using only the new style might work long-term, but it would take take time and effort to make everyone get used to it. Considering that this commit reduces the amount of code by adding the ability to use old-style names for more settings, I'd say that adding this ability is worth it.

There are two reasons for this change:

1. It removes many repetitive lines of code.

2. I think it's a good idea to enable the use of old-style section
names even for settings that previously haven't been settable in game
INIs. Mixing the two styles in INIs (using the new style only for new
settings) is not ideal, and people on the forums don't even seem to
know that the new style exists (nobody knew a way to set ubershader
settings per game, for instance). Encouraging everyone to start using
only the new style might work long-term, but it would take take time
and effort to make everyone get used to it. Considering that this commit
*reduces* the amount of code by adding the ability to use old-style
names for more settings, I'd say that adding this ability is worth it.
@leoetlino leoetlino merged commit b187d4c into dolphin-emu:master Dec 24, 2017
@JosJuice JosJuice deleted the ini-section-mapping branch December 24, 2017 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants