inline bool video_manager::effective_throttle() const { // if we're paused, or if the UI is active, we always throttle if (machine().paused() || ui_is_menu_active()) return true; // if we're fast forwarding, we don't throttle if (m_fastforward) return false; // otherwise, it's up to the user return m_throttle; }
static void display_loading_rom_message(rom_load_data *romdata, const char *name) { char buffer[200]; // 2010-04, FP - FIXME: in MESS, load_software_part_region sometimes calls this with romstotalsize = 0! // as a temp workaround, I added a check for romstotalsize !=0. if (name != NULL && romdata->romstotalsize) sprintf(buffer, "Loading (%d%%)", (UINT32)(100 * (UINT64)romdata->romsloadedsize / (UINT64)romdata->romstotalsize)); else sprintf(buffer, "Loading Complete"); if (!ui_is_menu_active()) ui_set_startup_text(romdata->machine(), buffer, FALSE); }
INLINE int effective_throttle(void) { return !video_config.fastforward && (video_config.throttle || mame_is_paused(Machine) || ui_is_menu_active() || ui_is_slider_active()); }