Previous 15994 Revisions Next

r3253 Saturday 13th September, 2008 at 14:18:28 UTC by Nathan Woods
[Windows] -newui cassette fix
[src/mess/osd/windows]menu.c

src/mess/osd/windows/menu.c
r3252r3253
13881388      append_menu_uistring(sub_menu, flags_for_exists,   new_item + DEVOPTION_CLOSE,   UI_unmount);
13891389
13901390#if HAS_WAVE
1391      if ((info.type == IO_CASSETTE) && !strcmp(info.file_extensions, "wav"))
1391      if ((img->type == CASSETTE) && !strcmp(info.file_extensions, "wav"))
13921392      {
13931393         cassette_state state;
13941394         state = image_exists(img) ? (cassette_get_state(img) & CASSETTE_MASK_UISTATE) : CASSETTE_STOPPED;
r3252r3253
15051505         break;
15061506
15071507      default:
1508         switch(image_devtype(img))
1509         {
15101508#if HAS_WAVE
1511            case IO_CASSETTE:
1512               switch(devoption) {
1509         if (img->type == CASSETTE)
1510         {
1511            switch(devoption)
1512            {
15131513               case DEVOPTION_CASSETTE_STOPPAUSE:
15141514                  cassette_change_state(img, CASSETTE_STOPPED, CASSETTE_MASK_UISTATE);
15151515                  break;
r3252r3253
15301530                  cassette_seek(img, +1.0, SEEK_CUR);
15311531                  break;
15321532            }
1533            break;
1533         }
15341534#endif /* HAS_WAVE */
1535
1536         default:
1537            break;
1538      }
1535         break;
15391536   }
15401537}
15411538

Previous 15994 Revisions Next


© 1998-2018 The MESS Team