summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IniFile.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2020-02-29 01:37:26 -0500
committerTechjar <tecknojar@gmail.com>2020-02-29 01:39:36 -0500
commit08c95883e9c9f367902ccf188576d03abcac2731 (patch)
tree211fc536fb27b26854282ecd6ba66e9241fa0ebe /Source/Core/Common/IniFile.cpp
parent4d9f556456a2d838a8d681c8eff29e506d6763cc (diff)
Common/IniFile: Add Exists function for section name only
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
-rw-r--r--Source/Core/Common/IniFile.cpp5
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);