From fc304ec1dd13eed9bb9eb25a9718562b7b26f220 Mon Sep 17 00:00:00 2001 From: zilmar Date: Wed, 24 Feb 2016 18:10:27 +1100 Subject: [PATCH] [Project64] Eeprom should not try to write if read only --- Source/Project64-core/N64System/Mips/Eeprom.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Project64-core/N64System/Mips/Eeprom.cpp b/Source/Project64-core/N64System/Mips/Eeprom.cpp index 8982d25b5..60557d0d5 100644 --- a/Source/Project64-core/N64System/Mips/Eeprom.cpp +++ b/Source/Project64-core/N64System/Mips/Eeprom.cpp @@ -183,6 +183,10 @@ void CEeprom::ReadFrom(uint8_t * Buffer, int32_t line) void CEeprom::WriteTo(uint8_t * Buffer, int32_t line) { + if (m_ReadOnly) + { + return; + } int32_t i; if (!m_File.IsOpen())