mirror of
https://github.com/suloku/gcmm.git
synced 2026-04-24 23:08:10 -05:00
Fixed icon number retrieving (thanks to dronesplitter)
(This fixes luigi's mansion for example)
This commit is contained in:
parent
351580e338
commit
01478552aa
|
|
@ -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;
|
||||
}
|
||||
|
||||
/***
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user