mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #3511 from Armada651/ini-default
IniFile: Initialize with default value if key does not exist.
This commit is contained in:
commit
185d4dbc76
@ -123,6 +123,8 @@ public:
|
||||
{
|
||||
if (Exists(sectionName, key))
|
||||
return GetOrCreateSection(sectionName)->Get(key, value, defaultValue);
|
||||
else
|
||||
*value = defaultValue;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user