mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12:00
cellSaveData: Skip directory items in savedata_get_list_item
This commit is contained in:
parent
ae14eb0747
commit
b6a288d383
1 changed files with 5 additions and 0 deletions
|
@ -1984,6 +1984,11 @@ static NEVER_INLINE error_code savedata_get_list_item(vm::cptr<char> dirName, vm
|
||||||
|
|
||||||
for (const auto& entry : fs::dir(save_path))
|
for (const auto& entry : fs::dir(save_path))
|
||||||
{
|
{
|
||||||
|
if (entry.is_directory)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
size_kbytes += ::narrow<u32>((entry.size + 1023) / 1024); // firmware rounds this value up
|
size_kbytes += ::narrow<u32>((entry.size + 1023) / 1024); // firmware rounds this value up
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue