diff options
| author | Jonathan Hamilton <jtrhamilton@gmail.com> | 2017-09-07 09:50:27 -0700 |
|---|---|---|
| committer | Jonathan Hamilton <jtrhamilton@gmail.com> | 2017-09-08 10:06:53 -0700 |
| commit | 221462808d96239bbfa7f862978a8b2846911d5b (patch) | |
| tree | 605d8e640d2559bfdd9d01310c17865146d9b539 /Source/Core/InputCommon/ControlReference/ExpressionParser.cpp | |
| parent | ce670c18519b30a10e17ab1f33193fcc11588da1 (diff) | |
Avoid crashes due to null SettingsSections
If a SettingsFile had at least one section, it was assumed all sections
were correctly filled out. This caused crashes when opening the settings
menus if that was not the case - for example the GFX.ini settings empty
sections are removed by the main dolphin app, putting the .ini file in a
state that would crash the settings window if at least one setting was
changed in it from the default, some sections were left as default.
This adds a subclass of HashMap<String, SettingSection> that constructs a
new SettingSection instead of returning 'null' if the key isn't found,
so the mSettings.get(FILE).get(SECTION).get(SETTING) pattern can be
safely used.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/ExpressionParser.cpp')
0 files changed, 0 insertions, 0 deletions
