diff options
| author | Léo Lam <leo@leolam.fr> | 2020-03-18 12:03:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-18 12:03:07 +0100 |
| commit | 4711b76cc462fb8bab20c846c737b1360cde041b (patch) | |
| tree | 285492e4267f190ab9307f98386e36f162737a69 /Source/Core/Common/IniFile.cpp | |
| parent | bb430fb5a521833fa6c7df0170e17b09ccb63837 (diff) | |
| parent | ae0c91805c26701885d5e0901a5e9e2a4a1b3812 (diff) | |
Merge pull request #8655 from Techjar/fix-hotkey-groups
Core/HotkeyManager: Fix group names in config
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/IniFile.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index 9023db682c..4e150cb6aa 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -176,6 +176,11 @@ bool IniFile::DeleteSection(std::string_view section_name) return false; } +bool IniFile::Exists(std::string_view section_name) const +{ + return GetSection(section_name) != nullptr; +} + bool IniFile::Exists(std::string_view section_name, std::string_view key) const { const Section* section = GetSection(section_name); |
