mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-04 23:30:44 +00:00
minor cleanup
This commit is contained in:
parent
2ae9b010b3
commit
e50a80c059
1 changed files with 10 additions and 7 deletions
|
@ -4144,6 +4144,8 @@ u32 Emulator::RemoveGamesFromDir(const std::string& games_dir, const std::vector
|
||||||
// List of serials (title id) to remove in "games.yml" file (if any)
|
// List of serials (title id) to remove in "games.yml" file (if any)
|
||||||
std::vector<std::string> serials_to_remove = serials_to_remove_from_yml; // Initialize the list with the specified serials (if any)
|
std::vector<std::string> serials_to_remove = serials_to_remove_from_yml; // Initialize the list with the specified serials (if any)
|
||||||
|
|
||||||
|
if (!games_dir.empty()) // Skip an empty folder, otherwise we'll remove all games (which is not the intention)
|
||||||
|
{
|
||||||
// Scan game list to detect the titles belonging to auto-detection "games_dir" folder
|
// Scan game list to detect the titles belonging to auto-detection "games_dir" folder
|
||||||
for (const auto& [serial, path] : Emu.GetGamesConfig().get_games()) // Loop on game list file
|
for (const auto& [serial, path] : Emu.GetGamesConfig().get_games()) // Loop on game list file
|
||||||
{
|
{
|
||||||
|
@ -4155,6 +4157,7 @@ u32 Emulator::RemoveGamesFromDir(const std::string& games_dir, const std::vector
|
||||||
serials_to_remove.push_back(serial);
|
serials_to_remove.push_back(serial);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Remove the specified and detected serials (title id) belonging to "games_dir" from the game list in memory
|
// Remove the specified and detected serials (title id) belonging to "games_dir" from the game list in memory
|
||||||
// or also in "games.yml" file according to the value of "save_on_disk"
|
// or also in "games.yml" file according to the value of "save_on_disk"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue