mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
input: fix custom pad config removal
This commit is contained in:
parent
fe0c164de2
commit
76ac8ffbd6
3 changed files with 15 additions and 0 deletions
|
@ -429,6 +429,14 @@ void cfg::map_entry::set_map(std::map<std::string, std::string>&& map)
|
|||
m_map = std::move(map);
|
||||
}
|
||||
|
||||
void cfg::map_entry::erase(const std::string& key)
|
||||
{
|
||||
if (m_map.contains(key))
|
||||
{
|
||||
m_map.erase(key);
|
||||
}
|
||||
}
|
||||
|
||||
void cfg::map_entry::from_default()
|
||||
{
|
||||
set_map({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue