mirror of
https://github.com/holub/mame
synced 2025-07-06 02:18:09 +03:00
Added custom comparator. (nw)
This commit is contained in:
parent
cdd470aa90
commit
4a9b584b26
@ -83,8 +83,17 @@ public:
|
||||
// construction/destruction
|
||||
favorite_manager(running_machine &machine, ui_options &moptions);
|
||||
|
||||
// favorites comparator
|
||||
struct ci_less
|
||||
{
|
||||
bool operator() (const std::string &s1, const std::string &s2) const
|
||||
{
|
||||
return (core_stricmp(s1.c_str(), s2.c_str()) < 0);
|
||||
}
|
||||
};
|
||||
|
||||
// favorite indices
|
||||
std::multimap<std::string, ui_software_info> m_list;
|
||||
std::multimap<std::string, ui_software_info, ci_less> m_list;
|
||||
|
||||
// getters
|
||||
running_machine &machine() const { return m_machine; }
|
||||
|
Loading…
Reference in New Issue
Block a user