summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/state.c')
-rw-r--r--src/emu/state.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/state.c b/src/emu/state.c
index 728e89762fb..a56f3a25528 100644
--- a/src/emu/state.c
+++ b/src/emu/state.c
@@ -105,9 +105,9 @@ state_manager::state_manager(running_machine &machine)
: m_machine(machine),
m_reg_allowed(true),
m_illegal_regs(0),
- m_entry_list(machine.m_respool),
- m_presave_list(machine.m_respool),
- m_postload_list(machine.m_respool)
+ m_entry_list(machine.respool()),
+ m_presave_list(machine.respool()),
+ m_postload_list(machine.respool())
{
}
@@ -200,7 +200,7 @@ void state_manager::save_memory(const char *module, const char *tag, UINT32 inde
if (!m_reg_allowed)
{
logerror("Attempt to register save state entry after state registration is closed!\nModule %s tag %s name %s\n", module, tag, name);
- if (m_machine.gamedrv->flags & GAME_SUPPORTS_SAVE)
+ if (m_machine.system().flags & GAME_SUPPORTS_SAVE)
fatalerror("Attempt to register save state entry after state registration is closed!\nModule %s tag %s name %s\n", module, tag, name);
m_illegal_regs++;
return;
@@ -280,7 +280,7 @@ state_save_error state_manager::read_file(emu_file &file)
// verify the header and report an error if it doesn't match
UINT32 sig = signature();
- if (validate_header(header, m_machine.gamedrv->name, sig, popmessage, "Error: ") != STATERR_NONE)
+ if (validate_header(header, m_machine.system().name, sig, popmessage, "Error: ") != STATERR_NONE)
return STATERR_INVALID_HEADER;
// determine whether or not to flip the data when done
@@ -321,7 +321,7 @@ state_save_error state_manager::write_file(emu_file &file)
memcpy(&header[0], s_magic_num, 8);
header[8] = SAVE_VERSION;
header[9] = NATIVE_ENDIAN_VALUE_LE_BE(0, SS_MSB_FIRST);
- strncpy((char *)&header[0x0a], m_machine.gamedrv->name, 0x1c - 0x0a);
+ strncpy((char *)&header[0x0a], m_machine.system().name, 0x1c - 0x0a);
UINT32 sig = signature();
*(UINT32 *)&header[0x1c] = LITTLE_ENDIANIZE_INT32(sig);