Fixed MameTesters bug #6621

This commit is contained in:
Nathan Woods 2017-08-17 08:17:58 -04:00 committed by Vas Crabb
parent b1275ccf6c
commit 098cfab5b8
2 changed files with 4 additions and 3 deletions

View File

@ -250,6 +250,7 @@ public:
u32 rand();
std::string describe_context() const;
std::string compose_saveload_filename(std::string &&base_filename, const char **searchpath = nullptr);
std::string get_statename(const char *statename_opt) const;
// CPU information
cpu_device * firstcpu; // first CPU
@ -293,7 +294,6 @@ private:
template <typename T> struct is_null<T *> { template <typename U> static bool value(U &&x) { return !x; } };
void start();
void set_saveload_filename(std::string &&filename);
std::string get_statename(const char *statename_opt) const;
void handle_saveload();
void soft_reset(void *ptr = nullptr, s32 param = 0);
std::string nvram_filename(device_t &device) const;

View File

@ -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));
}