mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
have a few less tagmap lookups counted (nw)
This commit is contained in:
parent
92e13e0424
commit
d54319c562
@ -398,6 +398,15 @@ int running_machine::run(bool firstrun)
|
||||
// and out via the exit phase
|
||||
m_current_phase = MACHINE_PHASE_EXIT;
|
||||
|
||||
#ifdef MAME_DEBUG
|
||||
if (g_tagmap_counter_enabled)
|
||||
{
|
||||
g_tagmap_counter_enabled = false;
|
||||
if (*(options().command()) == 0)
|
||||
osd_printf_info("%d tagmap lookups\n", g_tagmap_finds);
|
||||
}
|
||||
#endif
|
||||
|
||||
// save the NVRAM and configuration
|
||||
sound().ui_mute(true);
|
||||
nvram_save();
|
||||
@ -436,6 +445,10 @@ int running_machine::run(bool firstrun)
|
||||
error = MAMERR_FATALERROR;
|
||||
}
|
||||
|
||||
// make sure our phase is set properly before cleaning up,
|
||||
// in case we got here via exception
|
||||
m_current_phase = MACHINE_PHASE_EXIT;
|
||||
|
||||
#ifdef MAME_DEBUG
|
||||
if (g_tagmap_counter_enabled)
|
||||
{
|
||||
@ -445,10 +458,6 @@ int running_machine::run(bool firstrun)
|
||||
}
|
||||
#endif
|
||||
|
||||
// make sure our phase is set properly before cleaning up,
|
||||
// in case we got here via exception
|
||||
m_current_phase = MACHINE_PHASE_EXIT;
|
||||
|
||||
// call all exit callbacks registered
|
||||
call_notifiers(MACHINE_NOTIFY_EXIT);
|
||||
zip_file_cache_clear();
|
||||
|
Loading…
Reference in New Issue
Block a user