mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
IniFile: Initialize with default value if key does not exist.
This commit is contained in:
parent
8ee93fc4fa
commit
55cb6675cc
@ -123,6 +123,8 @@ public:
|
||||
{
|
||||
if (Exists(sectionName, key))
|
||||
return GetOrCreateSection(sectionName)->Get(key, value, defaultValue);
|
||||
else
|
||||
*value = defaultValue;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user