Fixed icon number retrieving (thanks to dronesplitter)

(This fixes luigi's mansion for example)
This commit is contained in:
sulokutdcmago 2012-09-24 09:21:19 +00:00
parent 351580e338
commit 01478552aa

View File

@ -325,14 +325,12 @@ int CardReadFileHeader (int slot, int id)
}
//Find how many icons are present
numicons = 8;
numicons = 0;
check = gci.icon_fmt;
for (i = 0; i < 8; i++) {
if (check & 0xC000)
break;
else
numicons--;
check = check << 2;
if (check & 3)
numicons++;
check = check >> 2;
}
/***