summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine.cpp
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2021-04-20 02:12:47 -0700
committer Aaron Giles <aaron@aarongiles.com>2021-04-20 02:12:47 -0700
commit8d047a8f0dcfb1bdaa4dcf87c001a30ebcc7cca8 (patch)
treef0ca7134fd27aa3d9967195dd8946be542c749cc /src/emu/machine.cpp
parent7e33cb29e24b2ce9c4c3bf7b1d7b8784a93f3172 (diff)
Better handling of null/missing items. More consistent error handling. Reduced compression to default to speed up saves. Optimized simple binary saves as well. Device interfaces now have automatic containers. Fixed duplicate entry detection. Added logic to parse an item we're skipping. Added detection of missing/duplicate items from input JSON. Fixed timing for save/load.save-experiments
Diffstat (limited to 'src/emu/machine.cpp')
-rw-r--r--src/emu/machine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/machine.cpp b/src/emu/machine.cpp
index 7e7952f935e..e2ba0f6cf70 100644
--- a/src/emu/machine.cpp
+++ b/src/emu/machine.cpp
@@ -263,7 +263,7 @@ void running_machine::start()
save().register_presave(save_prepost_delegate(FUNC(running_machine::presave_all_devices), this));
start_all_devices();
for (device_t &device : device_enumerator(root_device()))
- m_save.root_registrar().reg(device, device.tag(), device.type().size());
+ m_save.root_registrar().reg(device, string_format("device%s", device.tag()).c_str(), device.type().size());
save().register_postload(save_prepost_delegate(FUNC(running_machine::postload_all_devices), this));
// save outputs created before start time
@@ -938,12 +938,12 @@ void running_machine::handle_saveload()
auto const filerr = file.open(m_saveload_pending_file);
if (filerr == osd_file::error::NONE)
{
- osd_ticks_t start = osd_ticks();
const char *const opnamed = (m_saveload_schedule == saveload_schedule::LOAD) ? "loaded" : "saved";
- osd_ticks_t end = osd_ticks();
// read/write the save state
+ osd_ticks_t start = osd_ticks();
save_error saverr = (m_saveload_schedule == saveload_schedule::LOAD) ? m_save.load_file(file) : m_save.save_file(file);
+ osd_ticks_t end = osd_ticks();
// handle the result
switch (saverr)