Add RPCS3/games/ for automatic games detection, support PSN games outside HDD0 (#12982)

* SFO: Do not load PARAM.SFO with illegal TITLE_ID
* Add support for PSN games outside HDD0
* Add RPCS3/games/ for automatic game detection
This commit is contained in:
Elad Ashkenazi 2022-12-02 12:18:07 +02:00 committed by GitHub
parent 8d9dd1d19c
commit ad3ea966cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 135 additions and 22 deletions

View file

@ -2871,27 +2871,11 @@ Add valid disc games to gamelist (games.yml)
void main_window::AddGamesFromDir(const QString& path)
{
if (!QFileInfo(path).isDir())
{
return;
const std::string s_path = sstr(path);
// search dropped path first or else the direct parent to an elf is wrongly skipped
if (const auto error = Emu.BootGame(s_path, "", false, true); error == game_boot_result::no_errors)
{
gui_log.notice("Returned from game addition by drag and drop: %s", s_path);
}
// search direct subdirectories, that way we can drop one folder containing all games
QDirIterator dir_iter(path, QDir::Dirs | QDir::NoDotAndDotDot);
while (dir_iter.hasNext())
{
const std::string dir_path = sstr(dir_iter.next());
if (const auto error = Emu.BootGame(dir_path, "", false, true); error == game_boot_result::no_errors)
{
gui_log.notice("Returned from game addition by drag and drop: %s", dir_path);
}
}
Emu.AddGamesFromDir(sstr(path));
}
/**