summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/state.cpp')
-rw-r--r--src/frontend/mame/ui/state.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/state.cpp b/src/frontend/mame/ui/state.cpp
index 474319cd6fa..27bbe24ed00 100644
--- a/src/frontend/mame/ui/state.cpp
+++ b/src/frontend/mame/ui/state.cpp
@@ -353,15 +353,16 @@ const menu_load_save_state_base::file_entry &menu_load_save_state_base::file_ent
//-------------------------------------------------
-// is_present
+// state_name
//-------------------------------------------------
std::string menu_load_save_state_base::state_directory() const
{
+ const char *stateopt = machine().options().state_name();
return util::string_format("%s%s%s",
machine().options().state_directory(),
PATH_SEPARATOR,
- machine().system().name);
+ machine().get_statename(stateopt));
}