Esempio n. 1
0
static void saveState()
{
    SaveState* state = saveStateOpenForWrite("svi");

    saveStateSet(state, "svi80ColEnabled", svi80ColEnabled);
    saveStateSet(state, "psgAYReg15", psgAYReg15);

    saveStateClose(state);

    r800SaveState(r800);
    deviceManagerSaveState();
    slotSaveState();
    ay8910SaveState(ay8910);
}
static void saveState(RomMapperOpcodeModule* rm)
{
    SaveState* state = saveStateOpenForWrite("mapperOpcodeModule");

    saveStateSet(state, "biosLatch",  rm->biosLatch);
    saveStateSet(state, "slotSelect", rm->slotSelect);
    saveStateSet(state, "megaRamLatch0", rm->megaRamLatch[0]);
    saveStateSet(state, "megaRamLatch1", rm->megaRamLatch[1]);
    saveStateSet(state, "megaRamLatch2", rm->megaRamLatch[2]);
    saveStateSet(state, "megaRamLatch3", rm->megaRamLatch[3]);
    
    
    saveStateSetBuffer(state, "ram", rm->ram, 0x6000);
    
    saveStateClose(state);

    ay8910SaveState(rm->ay8910);
}