From c462cc4680378ad654fbb15b200b9161f97eb4d4 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 17 Oct 2020 21:09:42 +0200 Subject: [PATCH] Initialize EEPROM data if file doesn't exist. --- src/emucore/MT24LC256.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emucore/MT24LC256.cxx b/src/emucore/MT24LC256.cxx index b99f2ec2a..15cbfae96 100644 --- a/src/emucore/MT24LC256.cxx +++ b/src/emucore/MT24LC256.cxx @@ -59,6 +59,7 @@ MT24LC256::MT24LC256(const FilesystemNode& eepromfile, const System& system, catch(...) { myDataFileExists = false; + myData = make_unique(FLASH_SIZE); } // Then initialize the I2C state