mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Fixes for save_op_get_list_item
Only return data for dir and bind where requested. Some games like Akiba's Trip call this function but don't ask for any data back.
This commit is contained in:
parent
f91f2e3e6d
commit
7426eb285f
1 changed files with 17 additions and 11 deletions
|
@ -743,20 +743,26 @@ s32 static NEVER_INLINE save_op_get_list_item(vm::cptr<char> dirName, vm::ptr<Ce
|
||||||
strcpy_trunc(sysFileParam->detail, psf.at("DETAIL").as_string());
|
strcpy_trunc(sysFileParam->detail, psf.at("DETAIL").as_string());
|
||||||
}
|
}
|
||||||
|
|
||||||
fs::stat_t dir_info{};
|
if (dir)
|
||||||
if (!fs::stat(save_path, dir_info))
|
|
||||||
{
|
{
|
||||||
return CELL_SAVEDATA_ERROR_INTERNAL;
|
fs::stat_t dir_info{};
|
||||||
|
if (!fs::stat(save_path, dir_info))
|
||||||
|
{
|
||||||
|
return CELL_SAVEDATA_ERROR_INTERNAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get file stats, namely directory
|
||||||
|
strcpy_trunc(dir->dirName, dirName.get_ptr());
|
||||||
|
dir->atime = dir_info.atime;
|
||||||
|
dir->ctime = dir_info.ctime;
|
||||||
|
dir->mtime = dir_info.mtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get file stats, namely directory
|
if (bind)
|
||||||
strcpy_trunc(dir->dirName, dirName.get_ptr());
|
{
|
||||||
dir->atime = dir_info.atime;
|
//TODO: Set bind in accordance to any problems
|
||||||
dir->ctime = dir_info.ctime;
|
*bind = 0;
|
||||||
dir->mtime = dir_info.mtime;
|
}
|
||||||
|
|
||||||
//TODO: Set bind in accordance to any problems
|
|
||||||
*bind = 0;
|
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue