mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-10-01 21:59:35 +00:00
Corrected logic for handling number of returned save data list entries and total number of save entries.
This commit is contained in:
parent
bba7184090
commit
1dc87a0704
1 changed files with 3 additions and 2 deletions
|
@ -120,9 +120,10 @@ static NEVER_INLINE s32 savedata_op(ppu_thread& ppu, u32 operation, u32 version,
|
||||||
if (entry.name.substr(0, prefix.size()) == prefix)
|
if (entry.name.substr(0, prefix.size()) == prefix)
|
||||||
{
|
{
|
||||||
// Count the amount of matches and the amount of listed directories
|
// Count the amount of matches and the amount of listed directories
|
||||||
if (listGet->dirListNum++ < setBuf->dirListMax)
|
listGet->dirNum++; // total number of directories
|
||||||
|
if (listGet->dirListNum < setBuf->dirListMax)
|
||||||
{
|
{
|
||||||
listGet->dirNum++;
|
listGet->dirListNum++; // number of directories in list
|
||||||
|
|
||||||
// PSF parameters
|
// PSF parameters
|
||||||
const auto& psf = psf::load_object(fs::file(base_dir + entry.name + "/PARAM.SFO"));
|
const auto& psf = psf::load_object(fs::file(base_dir + entry.name + "/PARAM.SFO"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue