2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
2015-12-06 09:59:58 +00:00
|
|
|
#include <Project64-core/Settings/DebugSettings.h>
|
2012-12-19 09:30:18 +00:00
|
|
|
|
2013-03-22 05:47:20 +00:00
|
|
|
class CEeprom :
|
2015-11-15 02:20:18 +00:00
|
|
|
private CDebugSettings
|
2010-06-14 21:14:58 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-11-15 03:27:59 +00:00
|
|
|
CEeprom(bool ReadOnly);
|
2015-11-15 02:20:18 +00:00
|
|
|
~CEeprom();
|
2010-06-14 21:14:58 +00:00
|
|
|
|
2015-11-15 03:27:59 +00:00
|
|
|
void EepromCommand(uint8_t * Command);
|
2010-06-14 21:14:58 +00:00
|
|
|
|
|
|
|
private:
|
2015-11-15 02:20:18 +00:00
|
|
|
CEeprom(void); // Disable default constructor
|
|
|
|
CEeprom(const CEeprom&); // Disable copy constructor
|
|
|
|
CEeprom& operator=(const CEeprom&); // Disable assignment
|
2010-06-14 21:14:58 +00:00
|
|
|
|
2015-11-15 03:27:59 +00:00
|
|
|
void LoadEeprom();
|
|
|
|
void ReadFrom(uint8_t * Buffer, int32_t line);
|
|
|
|
void WriteTo(uint8_t * Buffer, int32_t line);
|
2015-11-15 02:20:18 +00:00
|
|
|
|
|
|
|
uint8_t m_EEPROM[0x800];
|
|
|
|
bool m_ReadOnly;
|
|
|
|
void * m_hFile;
|
2010-06-14 21:14:58 +00:00
|
|
|
};
|