mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
File.cpp: add rounding_alignment argument to get_dir_size to allow GetSizeKB functions to report size more accurately
This commit is contained in:
parent
9dc06cef7f
commit
08c12f4c00
3 changed files with 9 additions and 9 deletions
|
|
@ -234,7 +234,7 @@ error_code cellHddGameGetSizeKB(vm::ptr<u32> size)
|
|||
return CELL_HDDGAME_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*size = ::narrow<u32>(fs::get_dir_size(local_dir) / 1024);
|
||||
*size = ::narrow<u32>(fs::get_dir_size(local_dir, 1024) / 1024);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
@ -273,7 +273,7 @@ error_code cellGameDataGetSizeKB(vm::ptr<u32> size)
|
|||
return CELL_GAMEDATA_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*size = ::narrow<u32>(fs::get_dir_size(local_dir) / 1024);
|
||||
*size = ::narrow<u32>(fs::get_dir_size(local_dir, 1024) / 1024);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
@ -849,7 +849,7 @@ error_code cellGameGetSizeKB(vm::ptr<s32> size)
|
|||
}
|
||||
}
|
||||
|
||||
*size = ::narrow<u32>(fs::get_dir_size(local_dir) / 1024);
|
||||
*size = ::narrow<u32>(fs::get_dir_size(local_dir, 1024) / 1024);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue