summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/state.h')
-rw-r--r--src/frontend/mame/ui/state.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/frontend/mame/ui/state.h b/src/frontend/mame/ui/state.h
index 0d7bdd2fea9..72c76f238de 100644
--- a/src/frontend/mame/ui/state.h
+++ b/src/frontend/mame/ui/state.h
@@ -7,14 +7,16 @@
Menus for saving and loading state
***************************************************************************/
-
-#pragma once
-
#ifndef MAME_FRONTEND_UI_STATE_H
#define MAME_FRONTEND_UI_STATE_H
+#pragma once
+
#include "ui/menu.h"
+#include <chrono>
+#include <unordered_map>
+
namespace ui {
// ======================> menu_load_save_state_base
@@ -54,14 +56,15 @@ private:
std::unordered_map<std::string, file_entry> m_file_entries;
std::unordered_map<std::string, std::string> m_filename_to_code_map;
- const char * m_header;
- const char * m_footer;
- bool m_must_exist;
- bool m_pause_checked;
+ char const *const m_header;
+ char const *const m_footer;
+ bool const m_must_exist;
bool m_was_paused;
+ bool m_keys_released;
static void *itemref_from_file_entry(const file_entry &entry);
static const file_entry &file_entry_from_itemref(void *itemref);
+
void try_select_slot(std::string &&name);
void slot_selected(std::string &&name);
std::string state_directory() const;
@@ -92,6 +95,6 @@ protected:
virtual void process_file(std::string &&file_name) override;
};
-};
+} // namespace ui
#endif // MAME_FRONTEND_UI_STATE_H