mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
[TESTERS NEEDED] Improved contextual menu (#16038)
This commit is contained in:
parent
7f2534819e
commit
d1648dd707
9 changed files with 528 additions and 133 deletions
|
|
@ -97,6 +97,27 @@ games_config::result games_config::add_external_hdd_game(const std::string& key,
|
|||
return res;
|
||||
}
|
||||
|
||||
games_config::result games_config::remove_game(const std::string& key)
|
||||
{
|
||||
std::lock_guard lock(m_mutex);
|
||||
|
||||
// Remove node
|
||||
if (m_games.erase(key) == 0) // If node not found
|
||||
{
|
||||
// Nothing to do
|
||||
return result::success;
|
||||
}
|
||||
|
||||
m_dirty = true;
|
||||
|
||||
if (m_save_on_dirty && !save_nl())
|
||||
{
|
||||
return result::failure;
|
||||
}
|
||||
|
||||
return result::success;
|
||||
}
|
||||
|
||||
bool games_config::save_nl()
|
||||
{
|
||||
YAML::Emitter out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue