From 197b31735762a29763ece77ee35f31e36a922f81 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 17 Sep 2013 21:27:37 -0400 Subject: [PATCH] Fix indentation in function PSO_MakeSaveGameValid() in GCMemcard.cpp. Also move the iterator variable for a for loop into the loop statement in function CARD_GetSerialNo() --- Source/Core/Core/Src/HW/GCMemcard.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Source/Core/Core/Src/HW/GCMemcard.cpp b/Source/Core/Core/Src/HW/GCMemcard.cpp index c51d3221e3..4da694b123 100644 --- a/Source/Core/Core/Src/HW/GCMemcard.cpp +++ b/Source/Core/Core/Src/HW/GCMemcard.cpp @@ -1324,8 +1324,8 @@ void GCMemcard::FormatInternal(GCMC_Header &GCP) void GCMemcard::CARD_GetSerialNo(u32 *serial1,u32 *serial2) { u32 serial[8]; - int i; - for (i = 0; i < 8; i++) + + for (int i = 0; i < 8; i++) { memcpy(&serial[i], (u8 *) &hdr+(i*4), 4); } @@ -1429,15 +1429,15 @@ s32 GCMemcard::PSO_MakeSaveGameValid(DEntry& direntry, std::vector &Fi for (i=0; i < 256; i++) { chksum = i; - for (j=8; j > 0; j--) - { - if (chksum & 1) - chksum = (chksum>>1)^0xEDB88320; - else - chksum >>= 1; - } + for (j=8; j > 0; j--) + { + if (chksum & 1) + chksum = (chksum>>1)^0xEDB88320; + else + chksum >>= 1; + } - crc32LUT[i] = chksum; + crc32LUT[i] = chksum; } // PSO initial crc32 value