mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
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:
parent
8d9dd1d19c
commit
ad3ea966cb
7 changed files with 135 additions and 22 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue