mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-24 02:08:43 +00:00
Merge pull request #8655 from Techjar/fix-hotkey-groups
Core/HotkeyManager: Fix group names in config
This commit is contained in:
commit
4711b76cc4
3 changed files with 49 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -119,6 +119,7 @@ public:
|
|||
|
||||
bool Save(const std::string& filename);
|
||||
|
||||
bool Exists(std::string_view section_name) const;
|
||||
// Returns true if key exists in section
|
||||
bool Exists(std::string_view section_name, std::string_view key) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue