mirror of
https://github.com/holub/mame
synced 2025-06-27 06:39:03 +03:00
fixed wrong 'game' text.
This commit is contained in:
parent
cd05adafe0
commit
f37594a53a
@ -548,8 +548,8 @@ void ui_menu_select_game::handle()
|
|||||||
|
|
||||||
// if we're in an error state, overlay an error message
|
// if we're in an error state, overlay an error message
|
||||||
if (ui_error)
|
if (ui_error)
|
||||||
machine().ui().draw_text_box(container, "The selected game is missing one or more required ROM or CHD images. "
|
machine().ui().draw_text_box(container, "The selected machine is missing one or more required ROM or CHD images. "
|
||||||
"Please select a different game.\n\nPress any key (except ESC) to continue.", JUSTIFY_CENTER, 0.5f, 0.5f, UI_RED_COLOR);
|
"Please select a different machine.\n\nPress any key (except ESC) to continue.", JUSTIFY_CENTER, 0.5f, 0.5f, UI_RED_COLOR);
|
||||||
|
|
||||||
// handle filters selection from key shortcuts
|
// handle filters selection from key shortcuts
|
||||||
if (check_filter)
|
if (check_filter)
|
||||||
@ -1618,24 +1618,24 @@ void ui_menu_select_game::init_sorted_list()
|
|||||||
if (!m_sortedlist.empty())
|
if (!m_sortedlist.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// generate full list
|
// generate full list
|
||||||
for (int x = 0; x < driver_list::total(); ++x)
|
for (int x = 0; x < driver_list::total(); ++x)
|
||||||
{
|
{
|
||||||
const game_driver *driver = &driver_list::driver(x);
|
const game_driver *driver = &driver_list::driver(x);
|
||||||
if (driver == &GAME_NAME(___empty))
|
if (driver == &GAME_NAME(___empty))
|
||||||
continue;
|
continue;
|
||||||
if (driver->flags & MACHINE_IS_BIOS_ROOT)
|
if (driver->flags & MACHINE_IS_BIOS_ROOT)
|
||||||
m_isabios++;
|
m_isabios++;
|
||||||
|
|
||||||
m_sortedlist.push_back(driver);
|
m_sortedlist.push_back(driver);
|
||||||
c_mnfct::set(driver->manufacturer);
|
c_mnfct::set(driver->manufacturer);
|
||||||
c_year::set(driver->year);
|
c_year::set(driver->year);
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort manufacturers - years and driver
|
// sort manufacturers - years and driver
|
||||||
std::stable_sort(c_mnfct::ui.begin(), c_mnfct::ui.end());
|
std::stable_sort(c_mnfct::ui.begin(), c_mnfct::ui.end());
|
||||||
std::stable_sort(c_year::ui.begin(), c_year::ui.end());
|
std::stable_sort(c_year::ui.begin(), c_year::ui.end());
|
||||||
std::stable_sort(m_sortedlist.begin(), m_sortedlist.end(), sort_game_list);
|
std::stable_sort(m_sortedlist.begin(), m_sortedlist.end(), sort_game_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user