Add simple divide to get kbytes

integer division
This commit is contained in:
Inviuz 2017-03-26 00:16:47 +01:00 committed by Ivan
parent 08c9a7c184
commit 632287afe7

View File

@ -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;
}