Skip to content

Commit

Permalink
Add simple divide to get kbytes
Browse files Browse the repository at this point in the history
integer division
  • Loading branch information
Inviuz authored and Nekotekina committed Mar 28, 2017
1 parent 08c9a7c commit 632287a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpcs3/Emu/Cell/Modules/cellGame.cpp
Expand Up @@ -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;
}
Expand All @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 632287a

Please sign in to comment.