Add simple divide to get kbytes
integer division
This commit is contained in:
@@ -189,7 +189,7 @@ s32 cellHddGameGetSizeKB(vm::ptr<u32> size)
|
|||||||
return CELL_HDDGAME_ERROR_FAILURE;
|
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;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
@@ -215,7 +215,7 @@ s32 cellGameDataGetSizeKB(vm::ptr<u32> size)
|
|||||||
return CELL_GAMEDATA_ERROR_FAILURE;
|
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;
|
return CELL_OK;
|
||||||
|
|
||||||
@@ -730,7 +730,7 @@ s32 cellGameGetSizeKB(vm::ptr<s32> size)
|
|||||||
return CELL_GAME_ERROR_FAILURE;
|
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;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user