fix some valground bugs
This commit is contained in:
parent
12259cefcd
commit
b395a819e1
|
@ -315,12 +315,14 @@ void GameInfo::populate()
|
||||||
strcat(ROMserial, regions[region]);
|
strcat(ROMserial, regions[region]);
|
||||||
else
|
else
|
||||||
strcat(ROMserial, "Unknown");
|
strcat(ROMserial, "Unknown");
|
||||||
|
memset(ROMname, 0, sizeof(ROMname));
|
||||||
memcpy(ROMname, header.gameTile, 12);
|
memcpy(ROMname, header.gameTile, 12);
|
||||||
trim(ROMname);
|
trim(ROMname);
|
||||||
|
|
||||||
u8 num = (T1ReadByte((u8*)romdata, header.IconOff) == 1)?6:7;
|
u8 num = (T1ReadByte((u8*)romdata, header.IconOff) == 1)?6:7;
|
||||||
for (int i = 0; i < num; i++)
|
for (int i = 0; i < num; i++)
|
||||||
{
|
{
|
||||||
|
memset(ROMfullName[i],0,sizeof(ROMfullName[i]));
|
||||||
wcstombs(ROMfullName[i], (wchar_t *)(romdata+header.IconOff+0x240+(i*0x100)), 0x100);
|
wcstombs(ROMfullName[i], (wchar_t *)(romdata+header.IconOff+0x240+(i*0x100)), 0x100);
|
||||||
trim(ROMfullName[i]);
|
trim(ROMfullName[i]);
|
||||||
}
|
}
|
||||||
|
@ -2018,7 +2020,7 @@ void NDS_Reset()
|
||||||
|
|
||||||
if (firmware)
|
if (firmware)
|
||||||
{
|
{
|
||||||
delete [] firmware;
|
delete firmware;
|
||||||
firmware = NULL;
|
firmware = NULL;
|
||||||
}
|
}
|
||||||
firmware = new CFIRMWARE();
|
firmware = new CFIRMWARE();
|
||||||
|
|
Loading…
Reference in New Issue