mirror of
https://github.com/suloku/gcmm.git
synced 2026-09-08 11:27:26 -05:00
Fixed icon number retrieving (thanks to dronesplitter)
(This fixes luigi's mansion for example)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/***
|
||||
|
||||
Reference in New Issue
Block a user