cellSaveData: Skip directory items in savedata_get_list_item
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user