summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkipcode66 <kipcode66@gmail.com>2021-10-02 13:47:18 -0400
committerkipcode66 <kipcode66@gmail.com>2021-10-02 13:47:18 -0400
commit8b5ea141474f4d9edc96beeb0b1869230b73b02e (patch)
treec06d8b16787503e2d0b506b66e9f6dcf9fdaa454
parent29095587bbdcfd5c9ffd064cb66ea739dbcf339a (diff)
formatting (final)hotfix_wii
-rw-r--r--src/utils/card.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/utils/card.cpp b/src/utils/card.cpp
index 9bfa74a..bf1ac25 100644
--- a/src/utils/card.cpp
+++ b/src/utils/card.cpp
@@ -190,9 +190,8 @@ void store_mem_card(Storage& storage) {
GZSaveFile save_file;
Utilities::setup_save_file(save_file);
Utilities::store_save_layout(save_file.data);
- uint32_t file_size =
- (uint32_t)(tp_ceil((double)sizeof(save_file) / (double)storage.sector_size) *
- storage.sector_size);
+ uint32_t file_size = (uint32_t)(
+ tp_ceil((double)sizeof(save_file) / (double)storage.sector_size) * storage.sector_size);
storage.result = StorageDelete(0, storage.file_name_buffer);
storage.result = StorageCreate(0, storage.file_name_buffer, file_size, &storage.info);
if (storage.result == Ready || storage.result == Exist) {
@@ -220,9 +219,8 @@ void store_memfile(Storage& storage) {
posData.cam.target = tp_matrixInfo.matrix_info->target;
posData.cam.pos = tp_matrixInfo.matrix_info->pos;
posData.angle = dComIfGp_getPlayer()->mCollisionRot.mY;
- uint32_t file_size =
- (uint32_t)(tp_ceil((double)sizeof(dSv_info_c) / (double)storage.sector_size) *
- storage.sector_size);
+ uint32_t file_size = (uint32_t)(
+ tp_ceil((double)sizeof(dSv_info_c) / (double)storage.sector_size) * storage.sector_size);
storage.result = StorageDelete(0, storage.file_name_buffer);
storage.result = StorageCreate(0, storage.file_name_buffer, file_size, &storage.info);