[Project64] Eeprom should not try to write if read only
This commit is contained in:
parent
b59abd05fb
commit
fc304ec1dd
|
@ -183,6 +183,10 @@ void CEeprom::ReadFrom(uint8_t * Buffer, int32_t line)
|
||||||
|
|
||||||
void CEeprom::WriteTo(uint8_t * Buffer, int32_t line)
|
void CEeprom::WriteTo(uint8_t * Buffer, int32_t line)
|
||||||
{
|
{
|
||||||
|
if (m_ReadOnly)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
int32_t i;
|
int32_t i;
|
||||||
|
|
||||||
if (!m_File.IsOpen())
|
if (!m_File.IsOpen())
|
||||||
|
|
Loading…
Reference in New Issue