Esempio n. 1
0
static bool s_slot1_loadstate(EMUFILE* is, int size)
{
	u32 version = is->read32le();

	//version 0:
	if(version >= 0)
	{
		u8 slotID = is->read32le();
		slot1Type = NDS_SLOT1_RETAIL_AUTO;
		if (version >= 1)
			slot1_getTypeByID(slotID, slot1Type);

		slot1_Change(slot1Type);

		EMUFILE_MEMORY temp;
		is->readMemoryStream(&temp);
		temp.fseek(0,SEEK_SET);
		slot1_Loadstate(&temp);
	}

	return true;
}
Esempio n. 2
0
bool slot1_ChangeByID(u8 ID)
{
	NDS_SLOT1_TYPE type = NDS_SLOT1_RETAIL_AUTO;
	slot1_getTypeByID(ID, type);
	return slot1_Change(type);
}