mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
IniFile: Initialize with default value if key does not exist.
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user