Previous 15994 Revisions Next

r3079 Friday 22nd August, 2008 at 11:30:17 UTC by Nathan Woods
Fixed bug #1623
[src/mess]filemngr.c

src/mess/filemngr.c
r3078r3079
865865   }
866866   menustate = (file_manager_menu_state *) state;
867867
868   /* update the selected device */
869   menustate->selected_device = (const device_config *) ui_menu_get_selection(menu);
870
871868   /* if the menu isn't built, populate now */
872869   if (!ui_menu_populated(menu))
873870      menu_file_manager_populate(machine, menu, state);
874871
872   /* update the selected device */
873   menustate->selected_device = (const device_config *) ui_menu_get_selection(menu);
874
875875   /* process the menu */
876876   event = ui_menu_process(menu, 0);
877877   if (event != NULL && event->iptkey == IPT_UI_SELECT)
r3078r3079
887887         astring_cpyc(menustate->current_file, image_exists(menustate->selected_device) ? image_basename(menustate->selected_device) : "");
888888
889889         /* reset the existing menu */
890         ui_menu_reset(menu, 0);
890         ui_menu_reset(menu, UI_MENU_RESET_REMEMBER_POSITION);
891891
892892         /* push the menu */
893893         child_menu = ui_menu_alloc(machine, menu_file_selector, NULL);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team