diff options
| author | 2016-07-31 16:47:26 +0200 | |
|---|---|---|
| committer | 2016-07-31 16:47:26 +0200 | |
| commit | f127621e13050aad6b455ebfadec5bfdcbdd00d4 (patch) | |
| tree | 0601ca3093ab58610f108f93167d344151b2d4e5 /src/emu/save.cpp | |
| parent | eaa70ae0313eb1135ba63814f07f7e22c766a504 (diff) | |
made constexprs lower case and used constexpr for returning input value as well for rest of defines in osdcomm.h (nw)
Diffstat (limited to 'src/emu/save.cpp')
| -rw-r--r-- | src/emu/save.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/save.cpp b/src/emu/save.cpp index 273a3cc91cc..0dd66cd2e82 100644 --- a/src/emu/save.cpp +++ b/src/emu/save.cpp @@ -298,7 +298,7 @@ save_error save_manager::write_file(emu_file &file) header[9] = NATIVE_ENDIAN_VALUE_LE_BE(0, SS_MSB_FIRST); strncpy((char *)&header[0x0a], machine().system().name, 0x1c - 0x0a); UINT32 sig = signature(); - *(UINT32 *)&header[0x1c] = LITTLE_ENDIANIZE_INT32(sig); + *(UINT32 *)&header[0x1c] = little_endianize_int32(sig); // write the header and turn on compression for the rest of the file file.compress(FCOMPRESS_NONE); @@ -337,8 +337,8 @@ UINT32 save_manager::signature() const // 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); + temp[0] = little_endianize_int32(entry->m_typecount); + temp[1] = little_endianize_int32(entry->m_typesize); crc = core_crc32(crc, (UINT8 *)&temp[0], sizeof(temp)); } return crc; @@ -393,10 +393,10 @@ save_error save_manager::validate_header(const UINT8 *header, const char *gamena if (signature != 0) { UINT32 rawsig = *(UINT32 *)&header[0x1c]; - if (signature != LITTLE_ENDIANIZE_INT32(rawsig)) + if (signature != little_endianize_int32(rawsig)) { if (errormsg != nullptr) - (*errormsg)("%sIncompatible save file (signature %08x, expected %08x)", error_prefix, LITTLE_ENDIANIZE_INT32(rawsig), signature); + (*errormsg)("%sIncompatible save file (signature %08x, expected %08x)", error_prefix, little_endianize_int32(rawsig), signature); return STATERR_INVALID_HEADER; } } |
