summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/save.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/save.c')
-rw-r--r--src/emu/save.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emu/save.c b/src/emu/save.c
index 3efeea2856d..c6a1e5bd6fc 100644
--- a/src/emu/save.c
+++ b/src/emu/save.c
@@ -23,8 +23,7 @@
***************************************************************************/
#include "emu.h"
-
-#include <zlib.h>
+#include "coreutil.h"
//**************************************************************************
@@ -155,7 +154,7 @@ void save_manager::save_memory(device_t *device, const char *module, const char
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 (machine().system().flags & GAME_SUPPORTS_SAVE)
+ if (machine().system().flags & MACHINE_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;
@@ -333,13 +332,13 @@ UINT32 save_manager::signature() const
for (state_entry *entry = m_entry_list.first(); entry != NULL; entry = entry->next())
{
// add the entry name to the CRC
- crc = crc32(crc, (UINT8 *)entry->m_name.c_str(), entry->m_name.length());
+ crc = core_crc32(crc, (UINT8 *)entry->m_name.c_str(), entry->m_name.length());
// add the type and size to the CRC
UINT32 temp[2];
temp[0] = LITTLE_ENDIANIZE_INT32(entry->m_typecount);
temp[1] = LITTLE_ENDIANIZE_INT32(entry->m_typesize);
- crc = crc32(crc, (UINT8 *)&temp[0], sizeof(temp));
+ crc = core_crc32(crc, (UINT8 *)&temp[0], sizeof(temp));
}
return crc;
}