diff options
Diffstat (limited to 'src/frontend/mame/ui/selgame.h')
-rw-r--r-- | src/frontend/mame/ui/selgame.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/src/frontend/mame/ui/selgame.h b/src/frontend/mame/ui/selgame.h index da65fee98ce..5778b2c544c 100644 --- a/src/frontend/mame/ui/selgame.h +++ b/src/frontend/mame/ui/selgame.h @@ -1,5 +1,5 @@ // license:BSD-3-Clause -// copyright-holders:Maurizio Petrarota, Vas Crabb +// copyright-holders:Maurizio Petrarota /*************************************************************************** ui/selgame.h @@ -15,8 +15,6 @@ #include "ui/selmenu.h" #include "ui/utils.h" -#include <functional> - class media_auditor; @@ -39,27 +37,21 @@ private: CONF_PLUGINS, }; - using icon_cache = texture_lru<game_driver const *>; - - class persistent_data; - - persistent_data &m_persistent_data; - icon_cache m_icons; - std::string m_icon_paths; - std::vector<std::reference_wrapper<ui_system_info const> > m_displaylist; + enum { VISIBLE_GAMES_IN_SEARCH = 200 }; + static bool first_start; + static int m_isabios; - std::vector<std::pair<double, std::reference_wrapper<ui_system_info const> > > m_searchlist; - unsigned m_searched_fields; - bool m_populated_favorites; + static std::vector<const game_driver *> m_sortedlist; + std::vector<ui_system_info> m_availsortedlist; + std::vector<ui_system_info> m_displaylist; - static bool s_first_start; + const game_driver *m_searchlist[VISIBLE_GAMES_IN_SEARCH + 1]; virtual void populate(float &customtop, float &custombottom) override; virtual void handle() override; - // drawing + // draw left panel virtual float draw_left_panel(float x1, float y1, float x2, float y2) override; - virtual render_texture *get_icon_texture(int linenum, void *selectedref) override; // get selected software and/or driver virtual void get_selection(ui_software_info const *&software, game_driver const *&driver) const override; @@ -83,6 +75,7 @@ private: bool isfavorite() const; void populate_search(); + void init_sorted_list(); bool load_available_machines(); void load_custom_filters(); |