diff --git a/src/emu/save.h b/src/emu/save.h index 9097c195dec..cfdf119a156 100644 --- a/src/emu/save.h +++ b/src/emu/save.h @@ -92,21 +92,21 @@ class save_manager template struct array_unwrap { using underlying_type = T; - static constexpr std::size_t COUNT = 1U; + static constexpr std::size_t SAVE_COUNT = 1U; static constexpr std::size_t SIZE = sizeof(underlying_type); static underlying_type *ptr(T &value) { return &value; } }; template struct array_unwrap { using underlying_type = typename array_unwrap::underlying_type; - static constexpr std::size_t COUNT = N * array_unwrap::COUNT; + static constexpr std::size_t SAVE_COUNT = N * array_unwrap::SAVE_COUNT; static constexpr std::size_t SIZE = sizeof(underlying_type); static underlying_type *ptr(T (&value)[N]) { return array_unwrap::ptr(value[0]); } }; template struct array_unwrap > { using underlying_type = typename array_unwrap::underlying_type; - static constexpr std::size_t COUNT = N * array_unwrap::COUNT; + static constexpr std::size_t SAVE_COUNT = N * array_unwrap::SAVE_COUNT; static constexpr std::size_t SIZE = sizeof(underlying_type); static underlying_type *ptr(std::array &value) { return array_unwrap::ptr(value[0]); } }; @@ -151,7 +151,7 @@ public: throw emu_fatalerror("Called save_item on a pointer with no count!"); if (!type_checker::underlying_type>::is_atom) throw emu_fatalerror("Called save_item on a non-fundamental type!"); - save_memory(device, module, tag, index, valname, array_unwrap::ptr(value), array_unwrap::SIZE, array_unwrap::COUNT); + save_memory(device, module, tag, index, valname, array_unwrap::ptr(value), array_unwrap::SIZE, array_unwrap::SAVE_COUNT); } // templatized wrapper for pointers @@ -160,7 +160,7 @@ public: { if (!type_checker::underlying_type>::is_atom) throw emu_fatalerror("Called save_item on a non-fundamental type!"); - save_memory(device, module, tag, index, valname, array_unwrap::ptr(value[0]), array_unwrap::SIZE, array_unwrap::COUNT * count); + save_memory(device, module, tag, index, valname, array_unwrap::ptr(value[0]), array_unwrap::SIZE, array_unwrap::SAVE_COUNT * count); } // templatized wrapper for std::unique_ptr @@ -169,7 +169,7 @@ public: { if (!type_checker::underlying_type>::is_atom) throw emu_fatalerror("Called save_item on a non-fundamental type!"); - save_memory(device, module, tag, index, valname, array_unwrap::ptr(value[0]), array_unwrap::SIZE, array_unwrap::COUNT * count); + save_memory(device, module, tag, index, valname, array_unwrap::ptr(value[0]), array_unwrap::SIZE, array_unwrap::SAVE_COUNT * count); } // global memory registration