trunk/src/emu/machine.c
| r32037 | r32038 | |
| 398 | 398 | // and out via the exit phase |
| 399 | 399 | m_current_phase = MACHINE_PHASE_EXIT; |
| 400 | 400 | |
| 401 | #ifdef MAME_DEBUG |
| 402 | if (g_tagmap_counter_enabled) |
| 403 | { |
| 404 | g_tagmap_counter_enabled = false; |
| 405 | if (*(options().command()) == 0) |
| 406 | osd_printf_info("%d tagmap lookups\n", g_tagmap_finds); |
| 407 | } |
| 408 | #endif |
| 409 | |
| 401 | 410 | // save the NVRAM and configuration |
| 402 | 411 | sound().ui_mute(true); |
| 403 | 412 | nvram_save(); |
| r32037 | r32038 | |
| 436 | 445 | error = MAMERR_FATALERROR; |
| 437 | 446 | } |
| 438 | 447 | |
| 448 | // make sure our phase is set properly before cleaning up, |
| 449 | // in case we got here via exception |
| 450 | m_current_phase = MACHINE_PHASE_EXIT; |
| 451 | |
| 439 | 452 | #ifdef MAME_DEBUG |
| 440 | 453 | if (g_tagmap_counter_enabled) |
| 441 | 454 | { |
| r32037 | r32038 | |
| 445 | 458 | } |
| 446 | 459 | #endif |
| 447 | 460 | |
| 448 | | // make sure our phase is set properly before cleaning up, |
| 449 | | // in case we got here via exception |
| 450 | | m_current_phase = MACHINE_PHASE_EXIT; |
| 451 | | |
| 452 | 461 | // call all exit callbacks registered |
| 453 | 462 | call_notifiers(MACHINE_NOTIFY_EXIT); |
| 454 | 463 | zip_file_cache_clear(); |