summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/i2cmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/i2cmem.c')
-rw-r--r--src/emu/machine/i2cmem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/machine/i2cmem.c b/src/emu/machine/i2cmem.c
index d27547a191e..9e9f96aae32 100644
--- a/src/emu/machine/i2cmem.c
+++ b/src/emu/machine/i2cmem.c
@@ -139,7 +139,7 @@ void i2cmem_device_config::device_config_complete()
// on this device
//-------------------------------------------------
-bool i2cmem_device_config::device_validity_check( const game_driver &driver ) const
+bool i2cmem_device_config::device_validity_check( core_options &options, const game_driver &driver ) const
{
bool error = false;
return error;
@@ -259,12 +259,12 @@ void i2cmem_device::nvram_default()
// .nv file
//-------------------------------------------------
-void i2cmem_device::nvram_read( mame_file &file )
+void i2cmem_device::nvram_read( emu_file &file )
{
int i2cmem_bytes = m_config.m_data_size;
UINT8 *buffer = auto_alloc_array( &m_machine, UINT8, i2cmem_bytes );
- mame_fread( &file, buffer, i2cmem_bytes );
+ file.read( buffer, i2cmem_bytes );
for( offs_t offs = 0; offs < i2cmem_bytes; offs++ )
{
@@ -279,7 +279,7 @@ void i2cmem_device::nvram_read( mame_file &file )
// .nv file
//-------------------------------------------------
-void i2cmem_device::nvram_write( mame_file &file )
+void i2cmem_device::nvram_write( emu_file &file )
{
int i2cmem_bytes = m_config.m_data_size;
UINT8 *buffer = auto_alloc_array( &m_machine, UINT8, i2cmem_bytes );
@@ -289,7 +289,7 @@ void i2cmem_device::nvram_write( mame_file &file )
buffer[ offs ] = m_addrspace[ 0 ]->read_byte( offs );
}
- mame_fwrite( &file, buffer, i2cmem_bytes );
+ file.write( buffer, i2cmem_bytes );
auto_free( &m_machine, buffer );
}