Example #1
0
void eepromReadGame(const uint8_t*& data, int version)
{
    utilReadDataMem(data, eepromSaveData);
    if (version >= SAVE_GAME_VERSION_3) {
        eepromSize = utilReadIntMem(data);
        utilReadMem(eepromData, data, 0x2000);
    } else {
        // prior to 0.7.1, only 4K EEPROM was supported
        eepromSize = 512;
    }
}
Example #2
0
void eepromDeserialize(const uint8_t *& data)
{
    utilReadDataMem(data, eepromSaveData);
    eepromSize = utilReadIntMem(data);
    utilReadMem(eepromData, data, 0x2000);
}