src/mess/filemngr.c
| r2969 | r2970 | |
| 787 | 787 | |
| 788 | 788 | static void file_manager_render_extra(running_machine *machine, ui_menu *menu, void *state, void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2) |
| 789 | 789 | { |
| 790 | | // const char *path = (selected_device != NULL) ? image_filename(selected_device) : NULL; |
| 791 | | // extra_text_render(machine, menu, state, selectedref, top, bottom, |
| 792 | | // origx1, origy1, origx2, origy2, NULL, path); |
| 790 | file_manager_menu_state *menustate = (file_manager_menu_state *) state; |
| 791 | const char *path; |
| 792 | |
| 793 | /* access the path */ |
| 794 | path = (menustate->selected_device != NULL) ? image_filename(menustate->selected_device) : NULL; |
| 795 | extra_text_render(machine, menu, state, selectedref, top, bottom, |
| 796 | origx1, origy1, origx2, origy2, NULL, path); |
| 793 | 797 | } |
| 794 | 798 | |
| 795 | 799 | |
| r2969 | r2970 | |
| 843 | 847 | menustate = (file_manager_menu_state *) state; |
| 844 | 848 | |
| 845 | 849 | /* possible cleanups from the file selector - ugly global variable usage */ |
| 846 | | menustate->selected_device = NULL; |
| 847 | 850 | if (menustate->current_directory != NULL) |
| 848 | 851 | { |
| 849 | 852 | astring_free(menustate->current_directory); |
| r2969 | r2970 | |
| 855 | 858 | menustate->current_file = NULL; |
| 856 | 859 | } |
| 857 | 860 | |
| 861 | /* update the selected device */ |
| 862 | menustate->selected_device = (const device_config *) ui_menu_get_selection(menu); |
| 863 | |
| 858 | 864 | /* if the menu isn't built, populate now */ |
| 859 | 865 | if (!ui_menu_populated(menu)) |
| 860 | 866 | menu_file_manager_populate(machine, menu, state); |