diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2016-08-08 19:26:27 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2016-08-09 20:31:34 -0400 |
commit | f9939f28a8b590c3d444e0ae8fc0ef7a38b7d1f6 (patch) | |
tree | 1259991870e8d2cb0ba8e1ae8ea5264b5abd18e0 /src/frontend/mame/ui/info.h | |
parent | 2bac1002b3fce1f1c155f45b1238bfbb79c89890 (diff) |
UI-related cleanup (nw)
- Create class ui::machine_info for holding calculated machine info and generating descriptive strings for the UI. This absorbs a number of unimportant core functions that existed only for the UI's convenience.
Diffstat (limited to 'src/frontend/mame/ui/info.h')
-rw-r--r-- | src/frontend/mame/ui/info.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/info.h b/src/frontend/mame/ui/info.h index 2fbd9de3683..8a1d339dc73 100644 --- a/src/frontend/mame/ui/info.h +++ b/src/frontend/mame/ui/info.h @@ -16,6 +16,36 @@ #include "ui/menu.h" namespace ui { + +class machine_info +{ +public: + // construction + machine_info(running_machine &machine); + + // has... getters + bool has_configs() const { return m_has_configs; } + bool has_analog() const { return m_has_analog; } + bool has_dips() const { return m_has_dips; } + bool has_bioses() const { return m_has_bioses; } + + // text generators + std::string warnings_string(); + std::string game_info_string(); + std::string mandatory_images(); + std::string get_screen_desc(screen_device &screen); + +private: + // reference to machine + running_machine & m_machine; + + // has... + bool m_has_configs; + bool m_has_analog; + bool m_has_dips; + bool m_has_bioses; +}; + class menu_game_info : public menu { public: |