mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Common/IniFile: Add Exists function for section name only
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user