mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-27 21:35:19 +00:00
Add simple divide to get kbytes
integer division
This commit is contained in:
parent
08c9a7c184
commit
632287afe7
@ -189,7 +189,7 @@ s32 cellHddGameGetSizeKB(vm::ptr<u32> size)
|
||||
return CELL_HDDGAME_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*size = (u32)fs::get_dir_size(local_dir);
|
||||
*size = (u32)(fs::get_dir_size(local_dir)/1024);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
@ -215,7 +215,7 @@ s32 cellGameDataGetSizeKB(vm::ptr<u32> size)
|
||||
return CELL_GAMEDATA_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*size = (u32)fs::get_dir_size(local_dir);
|
||||
*size = (u32)(fs::get_dir_size(local_dir)/1024);
|
||||
|
||||
return CELL_OK;
|
||||
|
||||
@ -730,7 +730,7 @@ s32 cellGameGetSizeKB(vm::ptr<s32> size)
|
||||
return CELL_GAME_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*size = (u32)fs::get_dir_size(local_dir);
|
||||
*size = (u32)(fs::get_dir_size(local_dir)/1024);
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user