mirror of https://github.com/stella-emu/stella.git
Initialize EEPROM data if file doesn't exist.
This commit is contained in:
parent
f04c44371c
commit
d204a5cea8
|
@ -59,6 +59,7 @@ MT24LC256::MT24LC256(const FilesystemNode& eepromfile, const System& system,
|
|||
catch(...)
|
||||
{
|
||||
myDataFileExists = false;
|
||||
myData = make_unique<uInt8[]>(FLASH_SIZE);
|
||||
}
|
||||
|
||||
// Then initialize the I2C state
|
||||
|
|
Loading…
Reference in New Issue