Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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()
  • Loading branch information
lioncash committed Sep 18, 2013
1 parent 6cc30f3 commit 197b317
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Source/Core/Core/Src/HW/GCMemcard.cpp
Expand Up @@ -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);
}
Expand Down Expand Up @@ -1429,15 +1429,15 @@ s32 GCMemcard::PSO_MakeSaveGameValid(DEntry& direntry, std::vector<GCMBlock> &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
Expand Down

0 comments on commit 197b317

Please sign in to comment.