GBA slot:

- fix detect savetype;
This commit is contained in:
mtabachenko 2010-05-11 16:59:04 +00:00
parent fe0f471812
commit aaf0092a4a
1 changed files with 4 additions and 4 deletions

View File

@ -218,9 +218,9 @@ static u8 getSaveTypeGBA(const u8 *data, const u32 size)
{
u8 *dat = (u8 *)data;
for (u32 i = 0; i < (size / 4); i++)
for (u32 i = 0; i < size; i++)
{
u32 tmp = T1ReadLong(dat, i);
u32 tmp = T1ReadLong(dat, 0);
if (tmp == 0x52504545)
{
@ -258,7 +258,7 @@ static u8 getSaveTypeGBA(const u8 *data, const u32 size)
{
return 5;
}
dat += 4;
dat++;
}
return 0xFF; // NONE