From 9593de911ac4d33b58e63c80f8564388218e8513 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Fri, 27 Sep 2019 22:58:07 -0230 Subject: [PATCH] Potentially fix compile errors for a few libretro ports. I can't test this, so I don't know for sure if it fixes anything. --- src/emucore/MT24LC256.hxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/emucore/MT24LC256.hxx b/src/emucore/MT24LC256.hxx index 8555f53a5..e242e6340 100644 --- a/src/emucore/MT24LC256.hxx +++ b/src/emucore/MT24LC256.hxx @@ -44,14 +44,15 @@ class MT24LC256 Controller::onMessageCallback callback); ~MT24LC256(); - private: + public: // Sizes of the EEPROM static constexpr uInt32 FLASH_SIZE = 32_KB; - - public: static constexpr uInt32 PAGE_SIZE = 64; static constexpr uInt32 PAGE_NUM = FLASH_SIZE / PAGE_SIZE; + // Initial state value of flash EEPROM + static constexpr uInt8 INIT_VALUE = 0xff; + /** Read boolean data from the SDA line */ bool readSDA() const { return jpee_mdat && jpee_sdat; } @@ -83,9 +84,6 @@ class MT24LC256 void update(); private: - // Inital state value of flash EEPROM - static constexpr uInt8 INIT_VALUE = 0xff; - // The system of the parent controller const System& mySystem;