Diff for /np2/macos9/np2.cpp between versions 1.25 and 1.29

version 1.25, 2004/01/22 04:59:48 version 1.29, 2004/02/18 06:19:01
Line 20 Line 20
 #include        "pc9861k.h"  #include        "pc9861k.h"
 #include        "mpu98ii.h"  #include        "mpu98ii.h"
 #include        "timing.h"  #include        "timing.h"
   #include        "keystat.h"
 #include        "debugsub.h"  #include        "debugsub.h"
 #include        "bios.h"  #include        "bios.h"
 #include        "scrndraw.h"  #include        "scrndraw.h"
Line 109  static void MenuBarInit(void) { Line 110  static void MenuBarInit(void) {
         if (hmenu) {          if (hmenu) {
                 AppendResMenu(hmenu, 'DRVR');                  AppendResMenu(hmenu, 'DRVR');
         }          }
   #if !defined(SUPPORT_SCSI)
           hmenu = GetMenuHandle(IDM_HARDDISK);
           if (hmenu) {
                   DeleteMenuItem(hmenu, 7);
                   DeleteMenuItem(hmenu, 6);
                   DeleteMenuItem(hmenu, 5);
                   DeleteMenuItem(hmenu, 4);
                   DeleteMenuItem(hmenu, 3);
           }
   #endif
           if (!np2oscfg.I286SAVE) {
                   hmenu = GetMenuHandle(IDM_OTHER);
                   if (hmenu) {
                           DeleteMenuItem(hmenu, 9);
                   }
           }
         InsertMenu(GetMenu(IDM_SASI1), -1);          InsertMenu(GetMenu(IDM_SASI1), -1);
         InsertMenu(GetMenu(IDM_SASI2), -1);          InsertMenu(GetMenu(IDM_SASI2), -1);
   #if defined(SUPPORT_SCSI)
           InsertMenu(GetMenu(IDM_SCSI0), -1);
           InsertMenu(GetMenu(IDM_SCSI1), -1);
           InsertMenu(GetMenu(IDM_SCSI2), -1);
           InsertMenu(GetMenu(IDM_SCSI3), -1);
   #endif
         InsertMenu(GetMenu(IDM_KEYBOARD), -1);          InsertMenu(GetMenu(IDM_KEYBOARD), -1);
         InsertMenu(GetMenu(IDM_SOUND), -1);          InsertMenu(GetMenu(IDM_SOUND), -1);
         InsertMenu(GetMenu(IDM_MEMORY), -1);          InsertMenu(GetMenu(IDM_MEMORY), -1);
Line 185  static void HandleMenuChoice(long wParam Line 208  static void HandleMenuChoice(long wParam
                         break;                          break;
   
                 case IDM_SASI1OPEN:                  case IDM_SASI1OPEN:
                         dialog_changehdd(0);                          dialog_changehdd(0x00);
                         break;                          break;
   
                 case IDM_SASI1REMOVE:                  case IDM_SASI1REMOVE:
                         diskdrv_sethdd(0, NULL);                          diskdrv_sethdd(0x00, NULL);
                         break;                          break;
   
                 case IDM_SASI2OPEN:                  case IDM_SASI2OPEN:
                         dialog_changehdd(1);                          dialog_changehdd(0x01);
                         break;                          break;
   
                 case IDM_SASI2REMOVE:                  case IDM_SASI2REMOVE:
                         diskdrv_sethdd(1, NULL);                          diskdrv_sethdd(0x01, NULL);
                           break;
   
                   case IDM_SCSI0OPEN:
                           dialog_changehdd(0x20);
                           break;
   
                   case IDM_SCSI0REMOVE:
                           diskdrv_sethdd(0x20, NULL);
                           break;
   
                   case IDM_SCSI1OPEN:
                           dialog_changehdd(0x21);
                           break;
   
                   case IDM_SCSI1REMOVE:
                           diskdrv_sethdd(0x21, NULL);
                           break;
   
                   case IDM_SCSI2OPEN:
                           dialog_changehdd(0x22);
                           break;
   
                   case IDM_SCSI2REMOVE:
                           diskdrv_sethdd(0x22, NULL);
                           break;
   
                   case IDM_SCSI3OPEN:
                           dialog_changehdd(0x23);
                           break;
   
                   case IDM_SCSI3REMOVE:
                           diskdrv_sethdd(0x23, NULL);
                         break;                          break;
   
                 case IDM_ROLNORMAL:                  case IDM_ROLNORMAL:
Line 333  static void HandleMenuChoice(long wParam Line 388  static void HandleMenuChoice(long wParam
                         update |= SYS_UPDATEOSCFG;                          update |= SYS_UPDATEOSCFG;
                         break;                          break;
   
                   case IDM_F11USER:
                           menu_setf11key(4);
                           mackbd_resetf11();
                           update |= SYS_UPDATEOSCFG;
                           break;
   
                 case IDM_F12MOUSE:                  case IDM_F12MOUSE:
                         menu_setf12key(0);                          menu_setf12key(0);
                         mackbd_resetf12();                          mackbd_resetf12();
Line 351  static void HandleMenuChoice(long wParam Line 412  static void HandleMenuChoice(long wParam
                         update |= SYS_UPDATEOSCFG;                          update |= SYS_UPDATEOSCFG;
                         break;                          break;
   
                   case IDM_F12USER:
                           menu_setf12key(4);
                           mackbd_resetf12();
                           update |= SYS_UPDATEOSCFG;
                           break;
   
                 case IDM_BEEPOFF:                  case IDM_BEEPOFF:
                         menu_setbeepvol(0);                          menu_setbeepvol(0);
                         beep_setvol(0);                          beep_setvol(0);
Line 459  static void HandleMenuChoice(long wParam Line 526  static void HandleMenuChoice(long wParam
                         dialog_writebmp();                          dialog_writebmp();
                         break;                          break;
   
                   case IDM_CALENDAR:
                           CalendarDialogProc();
                           break;
   
                 case IDM_DISPCLOCK:                  case IDM_DISPCLOCK:
                         menu_setdispclk(np2oscfg.DISPCLK ^ 1);                          menu_setdispclk(np2oscfg.DISPCLK ^ 1);
                         update |= SYS_UPDATECFG;                          update |= SYS_UPDATECFG;

Removed from v.1.25  
changed lines
  Added in v.1.29


RetroPC.NET-CVS <cvs@retropc.net>