summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-06-24 23:53:38 +1000
committer Vas Crabb <vas@vastheman.com>2016-06-24 23:53:38 +1000
commit20a95045e16ab69cfb13c6d3cf520e63aa553102 (patch)
tree3a4b4bab3ed8afaedc6a9c499c5737dc6df5d91e /src/emu/machine.cpp
parent83a9cf42056efe9c78d39b89e4ba394a07c79dce (diff)
parent7509a56dc0cf8a380eada014167b8075fbcbcdc9 (diff)
Load save state preparations [Nathan Woods]
* A number of changes and refactorings in preparation for a new load/save state menu. Most notably, I am C++-ifying osd_directory (now osd::directory) and changing osd_stat() to return std::unique_ptrosd::directory::entry * Take note that this change completely omits POSIX support, simply because I lack a development environment to support it. This will have to be done by someone else.
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 778403ef8a4..ae797fc81d2 100644
--- a/src/emu/machine.cpp
+++ b/src/emu/machine.cpp
@@ -568,7 +568,7 @@ void running_machine::set_saveload_filename(const char *filename)
// take into account the statename option
const char *stateopt = options().state_name();
std::string statename = get_statename(stateopt);
- m_saveload_pending_file.assign(statename.c_str()).append(PATH_SEPARATOR).append(filename).append(".sta");
+ m_saveload_pending_file = string_format("%s%s%s.sta", statename, PATH_SEPARATOR, filename);
}
}
@@ -844,7 +844,7 @@ void running_machine::handle_saveload()
break;
case STATERR_INVALID_HEADER:
- popmessage("Error: Unable to %s state due to an invalid header. Make sure the save state is correct for this game.", opname);
+ popmessage("Error: Unable to %s state due to an invalid header. Make sure the save state is correct for this machine.", opname);
break;
case STATERR_READ_ERROR:
@@ -857,7 +857,7 @@ void running_machine::handle_saveload()
case STATERR_NONE:
if (!(m_system.flags & MACHINE_SUPPORTS_SAVE))
- popmessage("State successfully %s.\nWarning: Save states are not officially supported for this game.", opnamed);
+ popmessage("State successfully %s.\nWarning: Save states are not officially supported for this machine.", opnamed);
else
popmessage("State successfully %s.", opnamed);
break;