diff options
author | 2021-10-09 12:16:17 +1100 | |
---|---|---|
committer | 2021-10-09 12:16:17 +1100 | |
commit | 38082ccbee749d650ccea886ae376a5d1dec337c (patch) | |
tree | 9ba9a900ba826bda58832834278025ced17f42f5 /src/frontend/mame/ui/auditmenu.cpp | |
parent | 34b3bf701098082feb9077db49987507962c1578 (diff) |
Overdue internal UI enhancements (#8674)
* frontend: Added support for message context to localisations.
* frontend: Added string_view versions of the message lookup functions.
* frontend: Added a few more folder options to the internal UI.
* emu/softlist.cpp: Use more appropriate containers.
* Switched to Python 3 by default - this will become a requirement.
* Updated msgfmt.py for message context support.
* frontend: Show all software item info in the internal UI.
* frontend: Search alternate titles in software selection menu.
* 3rdparty/utf8proc: Updated to v2.6.1 (has several fixes).
* frontend: Added software filters for common info fields.
* frontend: Allow UI manager to hold onto persistent session data.
* frontend: Cache software lists for eight machines.
* frontend: Added support for loading localised system names.
* frontend: Add UI for selecting localised system names.
Diffstat (limited to 'src/frontend/mame/ui/auditmenu.cpp')
-rw-r--r-- | src/frontend/mame/ui/auditmenu.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/frontend/mame/ui/auditmenu.cpp b/src/frontend/mame/ui/auditmenu.cpp index 66c1aab0597..6da405b3698 100644 --- a/src/frontend/mame/ui/auditmenu.cpp +++ b/src/frontend/mame/ui/auditmenu.cpp @@ -31,54 +31,6 @@ void *const ITEMREF_START = reinterpret_cast<void *>(std::uintptr_t(1)); } // anonymous namespace -bool sorted_game_list(const game_driver *x, const game_driver *y) -{ - bool clonex = (x->parent[0] != '0') || x->parent[1]; - int cx = -1; - if (clonex) - { - cx = driver_list::find(x->parent); - if ((0 > cx) || (driver_list::driver(cx).flags & machine_flags::IS_BIOS_ROOT)) - clonex = false; - } - - bool cloney = (y->parent[0] != '0') || y->parent[1]; - int cy = -1; - if (cloney) - { - cy = driver_list::find(y->parent); - if ((0 > cy) || (driver_list::driver(cy).flags & machine_flags::IS_BIOS_ROOT)) - cloney = false; - } - - if (!clonex && !cloney) - { - return (core_stricmp(x->type.fullname(), y->type.fullname()) < 0); - } - else if (clonex && cloney) - { - if (!core_stricmp(x->parent, y->parent)) - return (core_stricmp(x->type.fullname(), y->type.fullname()) < 0); - else - return (core_stricmp(driver_list::driver(cx).type.fullname(), driver_list::driver(cy).type.fullname()) < 0); - } - else if (!clonex && cloney) - { - if (!core_stricmp(x->name, y->parent)) - return true; - else - return (core_stricmp(x->type.fullname(), driver_list::driver(cy).type.fullname()) < 0); - } - else - { - if (!core_stricmp(x->parent, y->name)) - return false; - else - return (core_stricmp(driver_list::driver(cx).type.fullname(), y->type.fullname()) < 0); - } -} - - menu_audit::menu_audit(mame_ui_manager &mui, render_container &container, std::vector<ui_system_info> &availablesorted, mode audit_mode) : menu(mui, container) , m_worker_thread() |