Previous 15994 Revisions Next

r3207 Monday 8th September, 2008 at 16:07:43 UTC by Firewave
Fixed toggling through multiple cassettes in Tape Control menu
[src/mess]tapectrl.c

src/mess/tapectrl.c
r3206r3207
8181{
8282   astring *timepos = astring_alloc();
8383   cassette_state state;
84   int count = device_count(machine, IO_CASSETTE);
85   UINT32 flags = 0;
8486
87   if( count > 0 )
88   {
89      if( menustate->index == (count-1) )
90         flags |= MENU_FLAG_LEFT_ARROW;
91      else
92         flags |= MENU_FLAG_RIGHT_ARROW;
93   }
94
8595   if (image_exists(menustate->device))
8696   {
8797      /* name of tape */
88      ui_menu_item_append(menu, image_typename_id(menustate->device), image_filename(menustate->device), 0, NULL);
98      ui_menu_item_append(menu, image_typename_id(menustate->device), image_filename(menustate->device), flags, NULL);
8999
90100      /* state */
91101      tapecontrol_gettime(timepos, menustate->device, NULL, NULL);
r3206r3207
120130   else
121131   {
122132      /* no tape loaded */
123      ui_menu_item_append(menu, ui_getstring(UI_notapeimageloaded), NULL, 0, NULL);
133      ui_menu_item_append(menu, ui_getstring(UI_notapeimageloaded), NULL, flags, NULL);
124134   }
125135
126136   if (timepos != NULL)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team