src/emu/uimenu.c
| r2847 | r2848 | |
| 171 | 171 | static UINT32 menu_video(running_machine *machine, UINT32 state); |
| 172 | 172 | static UINT32 menu_quit_game(running_machine *machine, UINT32 state); |
| 173 | 173 | static UINT32 menu_select_game(running_machine *machine, UINT32 state); |
| 174 | | #ifdef MESS |
| 175 | | static UINT32 menu_file_manager(running_machine *machine, UINT32 state); |
| 176 | | #if HAS_WAVE |
| 177 | | static UINT32 menu_tape_control(running_machine *machine, UINT32 state); |
| 178 | | #endif /* HAS_WAVE */ |
| 179 | | #endif /* MESS */ |
| 180 | 174 | |
| 181 | 175 | /* menu helpers */ |
| 182 | 176 | static void menu_render_triangle(bitmap_t *dest, const bitmap_t *source, const rectangle *sbounds, void *param); |
| r2847 | r2848 | |
| 1762 | 1756 | } |
| 1763 | 1757 | |
| 1764 | 1758 | |
| 1765 | | /*------------------------------------------------- |
| 1766 | | menu_file_manager - MESS-specific menu |
| 1767 | | -------------------------------------------------*/ |
| 1768 | 1759 | |
| 1769 | | #ifdef MESS |
| 1770 | | static UINT32 menu_file_manager(running_machine *machine, UINT32 state) |
| 1771 | | { |
| 1772 | | int result = filemanager(machine, state); |
| 1773 | | if (result == 0) |
| 1774 | | return ui_menu_stack_pop(); |
| 1775 | | return result; |
| 1776 | | } |
| 1777 | | #endif |
| 1778 | | |
| 1779 | | |
| 1780 | | /*------------------------------------------------- |
| 1781 | | menu_tape_control - MESS-specific menu |
| 1782 | | -------------------------------------------------*/ |
| 1783 | | |
| 1784 | | #ifdef MESS |
| 1785 | | #if HAS_WAVE |
| 1786 | | static UINT32 menu_tape_control(running_machine *machine, UINT32 state) |
| 1787 | | { |
| 1788 | | int result = tapecontrol(machine, state); |
| 1789 | | if (result == 0) |
| 1790 | | return ui_menu_stack_pop(); |
| 1791 | | return result; |
| 1792 | | } |
| 1793 | | #endif /* HAS_WAVE */ |
| 1794 | | #endif /* MESS */ |
| 1795 | | |
| 1796 | | |
| 1797 | | |
| 1798 | 1760 | /*************************************************************************** |
| 1799 | 1761 | MENU HELPERS |
| 1800 | 1762 | ***************************************************************************/ |
src/mess/uimess.h
| r2847 | r2848 | |
| 21 | 21 | UINT32 ui_menu_image_info(running_machine *machine, UINT32 state); |
| 22 | 22 | |
| 23 | 23 | /* file manager */ |
| 24 | | int filemanager(running_machine *machine, int selected); |
| 24 | UINT32 menu_file_manager(running_machine *machine, UINT32 state); |
| 25 | 25 | |
| 26 | 26 | /* tape control */ |
| 27 | | int tapecontrol(running_machine *machine, int selected); |
| 27 | UINT32 menu_tape_control(running_machine *machine, UINT32 state); |
| 28 | void tapecontrol_gettime(char *timepos, size_t timepos_size, const device_config *img, int *curpos, int *endpos); |
| 28 | 29 | |
| 29 | 30 | /* paste */ |
| 30 | 31 | void ui_paste(running_machine *machine); |
src/mess/tapectrl.c
| r2847 | r2848 | |
| 37 | 37 | *endpos = t1; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | | int tapecontrol(running_machine *machine, int selected) |
| 40 | static int tapecontrol(running_machine *machine, int selected) |
| 41 | 41 | { |
| 42 | 42 | static int id = 0; |
| 43 | 43 | char timepos[32]; |
| r2847 | r2848 | |
| 216 | 216 | |
| 217 | 217 | return sel + 1; |
| 218 | 218 | } |
| 219 | |
| 220 | |
| 221 | /*------------------------------------------------- |
| 222 | menu_tape_control - MESS-specific menu |
| 223 | -------------------------------------------------*/ |
| 224 | |
| 225 | UINT32 menu_tape_control(running_machine *machine, UINT32 state) |
| 226 | { |
| 227 | int result = tapecontrol(machine, state); |
| 228 | if (result == 0) |
| 229 | return ui_menu_stack_pop(); |
| 230 | return result; |
| 231 | } |
src/mess/filemngr.c
| r2847 | r2848 | |
| 663 | 663 | return sel + 1; |
| 664 | 664 | } |
| 665 | 665 | |
| 666 | | int filemanager(running_machine *machine, int selected) |
| 666 | static int filemanager(running_machine *machine, int selected) |
| 667 | 667 | { |
| 668 | 668 | static int previous_sel; |
| 669 | 669 | const char *name; |
| r2847 | r2848 | |
| 819 | 819 | return sel + 1; |
| 820 | 820 | } |
| 821 | 821 | |
| 822 | |
| 823 | |
| 824 | /*------------------------------------------------- |
| 825 | menu_file_manager - MESS-specific menu |
| 826 | -------------------------------------------------*/ |
| 827 | |
| 828 | UINT32 menu_file_manager(running_machine *machine, UINT32 state) |
| 829 | { |
| 830 | int result = filemanager(machine, state); |
| 831 | if (result == 0) |
| 832 | return ui_menu_stack_pop(); |
| 833 | return result; |
| 834 | } |