core:
- fix load slot2 savestate from old savestates created before [r4867]
This commit is contained in:
parent
2f094cf11d
commit
429afd87f6
|
@ -408,8 +408,9 @@ static bool s_slot2_loadstate(EMUFILE* is, int size)
|
||||||
//version 0:
|
//version 0:
|
||||||
if(version >= 0)
|
if(version >= 0)
|
||||||
{
|
{
|
||||||
u8 slotID = is->read32le();
|
|
||||||
NDS_SLOT2_TYPE slotType = NDS_SLOT2_AUTO;
|
NDS_SLOT2_TYPE slotType = NDS_SLOT2_AUTO;
|
||||||
|
u8 slotID = is->read32le();
|
||||||
|
if (version == 0)
|
||||||
slot2_getTypeByID(slotID, slotType);
|
slot2_getTypeByID(slotID, slotType);
|
||||||
|
|
||||||
slot2_Change(slotType);
|
slot2_Change(slotType);
|
||||||
|
|
Loading…
Reference in New Issue