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
|
|
@ -251,6 +251,14 @@ namespace psf
|
|||
PSF_CHECK(false, corrupt);
|
||||
}
|
||||
|
||||
const auto tid = get_string(pair.sfo, "TITLE_ID", "");
|
||||
|
||||
if (std::find_if(tid.begin(), tid.end(), [](char ch){ return !((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9')); }) != tid.end())
|
||||
{
|
||||
psf_log.error("Invalid title ID ('%s')", tid);
|
||||
PSF_CHECK(false, corrupt);
|
||||
}
|
||||
|
||||
#undef PSF_CHECK
|
||||
return pair;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue