bool Crlp9001::LoadSession_File(QXmlStreamReader *xmlIn) { if (xmlIn->name()=="session") { bool rot = xmlIn->attributes().value("rotate").toString().toInt(0,16); if (rotate != rot) Rotate(); if (xmlIn->readNextStartElement() && xmlIn->name() == "memory" ) { AddLog(LOG_MASTER,"Load Memory"); for (int s=0; s<SlotList.size(); s++) // Save Memory { if (SlotList[s].getType() == RAM) { AddLog(LOG_MASTER," Load Slot"+SlotList[s].getLabel()); Mem_Load(xmlIn,s); } } } } return true; }
bool Ccemem::LoadSession_File(QXmlStreamReader *xmlIn) { if (xmlIn->name()=="session") { if (xmlIn->readNextStartElement() && xmlIn->name() == "memory" ) { AddLog(LOG_MASTER,"Load Memory"); for (int s=0; s<SlotList.size(); s++) // Save Memory { switch (SlotList[s].getType()) { case CSlot::RAM: case CSlot::CUSTOM_ROM: AddLog(LOG_MASTER," Load Slot"+SlotList[s].getLabel()); Mem_Load(xmlIn,s); break; default: break; } } } } return true; }