summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/save.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-16 20:05:32 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-16 20:05:32 +0100
commitcaba131d844ade3f2b30d6be24ea6cf46b2949d7 (patch)
tree03a87639748f22e37c6ef572354e8662517b7ec9 /src/emu/save.cpp
parent2d96e6f4d304f1e8dbc15d305b9445769724219b (diff)
rest of device parameters to std::string (nw)
Diffstat (limited to 'src/emu/save.cpp')
-rw-r--r--src/emu/save.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/save.cpp b/src/emu/save.cpp
index 0a6cffd3983..cee8061f43a 100644
--- a/src/emu/save.cpp
+++ b/src/emu/save.cpp
@@ -146,16 +146,16 @@ void save_manager::register_postload(save_prepost_delegate func)
// memory
//-------------------------------------------------
-void save_manager::save_memory(device_t *device, const char *module, std::string tag, UINT32 index, const char *name, void *val, UINT32 valsize, UINT32 valcount)
+void save_manager::save_memory(device_t *device, std::string module, std::string tag, UINT32 index, std::string name, void *val, UINT32 valsize, UINT32 valcount)
{
assert(valsize == 1 || valsize == 2 || valsize == 4 || valsize == 8);
// check for invalid timing
if (!m_reg_allowed)
{
- machine().logerror("Attempt to register save state entry after state registration is closed!\nModule %s tag %s name %s\n", module, tag.c_str(), name);
+ machine().logerror("Attempt to register save state entry after state registration is closed!\nModule %s tag %s name %s\n", module.c_str(), tag.c_str(), name.c_str());
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.c_str(), name);
+ fatalerror("Attempt to register save state entry after state registration is closed!\nModule %s tag %s name %s\n", module.c_str(), tag.c_str(), name.c_str());
m_illegal_regs++;
return;
}
@@ -163,9 +163,9 @@ void save_manager::save_memory(device_t *device, const char *module, std::string
// create the full name
std::string totalname;
if (!tag.empty())
- strprintf(totalname, "%s/%s/%X/%s", module, tag.c_str(), index, name);
+ strprintf(totalname, "%s/%s/%X/%s", module.c_str(), tag.c_str(), index, name.c_str());
else
- strprintf(totalname, "%s/%X/%s", module, index, name);
+ strprintf(totalname, "%s/%X/%s", module.c_str(), index, name.c_str());
// look for duplicates and an entry to insert in front of
state_entry *insert_after = nullptr;
@@ -182,7 +182,7 @@ void save_manager::save_memory(device_t *device, const char *module, std::string
}
// insert us into the list
- m_entry_list.insert_after(*global_alloc(state_entry(val, totalname.c_str(), device, module, tag, index, valsize, valcount)), insert_after);
+ m_entry_list.insert_after(*global_alloc(state_entry(val, totalname.c_str(), device, module.c_str(), tag, index, valsize, valcount)), insert_after);
}
@@ -418,7 +418,7 @@ save_manager::state_callback::state_callback(save_prepost_delegate callback)
// state_entry - constructor
//-------------------------------------------------
-state_entry::state_entry(void *data, const char *name, device_t *device, const char *module, std::string tag, int index, UINT8 size, UINT32 count)
+state_entry::state_entry(void *data, std::string name, device_t *device, std::string module, std::string tag, int index, UINT8 size, UINT32 count)
: m_next(nullptr),
m_data(data),
m_name(name),