mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,8 @@ public:
|
||||||
{
|
{
|
||||||
if (Exists(sectionName, key))
|
if (Exists(sectionName, key))
|
||||||
return GetOrCreateSection(sectionName)->Get(key, value, defaultValue);
|
return GetOrCreateSection(sectionName)->Get(key, value, defaultValue);
|
||||||
|
else
|
||||||
|
*value = defaultValue;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue