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()
This commit is contained in:
parent
6cc30f3b23
commit
197b317357
|
@ -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<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
|
||||
|
|
Loading…
Reference in New Issue