mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
cellSaveData: Skip directory items in savedata_get_list_item
This commit is contained in:
parent
ae14eb0747
commit
b6a288d383
@ -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))
|
||||
{
|
||||
if (entry.is_directory)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
size_kbytes += ::narrow<u32>((entry.size + 1023) / 1024); // firmware rounds this value up
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user