diff options
author | Olivier Galibert <galibert@pobox.com> | 2020-11-03 18:09:31 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2020-11-03 18:10:17 +0100 |
commit | db791201fddb325404f8d8d75991f6a34c8a55bf (patch) | |
tree | 3a913805c57357c468a0b16c57ba193d5b8a14d5 /src/emu | |
parent | 03d201bf8b15e9a4676b0779c5fd76673cd9ef6d (diff) |
Fix a
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/save.cpp | 4 | ||||
-rw-r--r-- | src/emu/save.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/save.cpp b/src/emu/save.cpp index b95ff1796b4..38366b61271 100644 --- a/src/emu/save.cpp +++ b/src/emu/save.cpp @@ -196,7 +196,7 @@ void save_manager::save_memory(device_t *device, const char *module, const char totalname = string_format("%s/%X/%s", module, index, name); // insert us into the list - m_entry_list.emplace_back(std::make_unique<state_entry>(val, totalname.c_str(), device, module, tag ? tag : "", index, valsize, valcount, blockcount, stride)); + m_entry_list.emplace_back(std::make_unique<state_entry>(val, totalname, device, module, tag ? tag : "", index, valsize, valcount, blockcount, stride)); } @@ -961,7 +961,7 @@ void rewinder::report_error(save_error error, rewind_operation operation) // state_entry - constructor //------------------------------------------------- -save_manager::state_entry::state_entry(void *data, const char *name, device_t *device, const char *module, const char *tag, int index, u8 size, u32 valcount, u32 blockcount, u32 stride) +save_manager::state_entry::state_entry(void *data, std::string name, device_t *device, std::string module, std::string tag, int index, u8 size, u32 valcount, u32 blockcount, u32 stride) : m_data(data) , m_name(name) , m_device(device) diff --git a/src/emu/save.h b/src/emu/save.h index f31e3762d5b..1bd3eb840ba 100644 --- a/src/emu/save.h +++ b/src/emu/save.h @@ -106,7 +106,7 @@ class save_manager { public: // construction/destruction - state_entry(void *data, const char *name, device_t *device, const char *module, const char *tag, int index, u8 size, u32 valcount, u32 blockcount, u32 stride); + state_entry(void *data, std::string name, device_t *device, std::string module, std::string tag, int index, u8 size, u32 valcount, u32 blockcount, u32 stride); // helpers void flip_data(); |