mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-12 22:14:58 +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
@ -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)
|
||||
{
|
||||
// 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
|
||||
const auto& psf = psf::load_object(fs::file(base_dir + entry.name + "/PARAM.SFO"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user