Diff for /np2/win9x/menu.cpp between versions 1.11 and 1.12

version 1.11, 2004/02/11 17:39:59 version 1.12, 2004/02/13 20:31:55
Line 29  static const char smenu_1280x800[] = "12 Line 29  static const char smenu_1280x800[] = "12
   
 static const char smenu_memdump[] = "&Memory Dump";  static const char smenu_memdump[] = "&Memory Dump";
 static const char smenu_dbguty[] = "&Debug Utility";  static const char smenu_dbguty[] = "&Debug Utility";
 static const char menu_i286save[] = "&i286 save";  
   
 static const SMENUITEM smenuitem[] = {  static const SMENUITEM smenuitem[] = {
                         {smenu_toolwin,         IDM_TOOLWIN},                          {smenu_toolwin,         IDM_TOOLWIN},
Line 171  void menu_addmenubar(HMENU popup, HMENU  Line 170  void menu_addmenubar(HMENU popup, HMENU 
   
 // ----  // ----
   
 static const char xmenu_stat[] = "S&tat";  static const char xmenu_i286save[] = "&i286 save";
 static const char xmenu_statsave[] = "Save %d";  
 static const char xmenu_statload[] = "Load %d";  #if defined(SUPPORT_SCSI)
 static const char xmenu_scsi[] = "SCSI #%d";  static const char xmenu_scsi[] = "SCSI #%d";
 static const char xmenu_open[] = "&Open...";  static const char xmenu_open[] = "&Open...";
 static const char xmenu_remove[] = "&Remove";  static const char xmenu_remove[] = "&Remove";
Line 191  static void addscsimenu(HMENU hMenu, UIN Line 190  static void addscsimenu(HMENU hMenu, UIN
         SPRINTF(buf, xmenu_scsi, drv);          SPRINTF(buf, xmenu_scsi, drv);
         AppendMenu(hMenu, MF_POPUP, (UINT32)hSubMenu, buf);          AppendMenu(hMenu, MF_POPUP, (UINT32)hSubMenu, buf);
 }  }
   #endif
   
   #if defined(SUPPORT_STATSAVE)
   static const char xmenu_stat[] = "S&tat";
   static const char xmenu_statsave[] = "Save %u";
   static const char xmenu_statload[] = "Load %u";
   
   static void addstatsavemenu(HMENU hMenu) {
   
           HMENU   hSubMenu;
           UINT    i;
           char    buf[16];
   
           hSubMenu = CreatePopupMenu();
           for (i=0; i<SUPPORT_STATSAVE; i++) {
                   SPRINTF(buf, xmenu_statsave, i);
                   AppendMenu(hSubMenu, MF_STRING, IDM_FLAGSAVE + i, buf);
           }
           AppendMenu(hSubMenu, MF_MENUBARBREAK, 0, NULL);
           for (i=0; i<SUPPORT_STATSAVE; i++) {
                   SPRINTF(buf, xmenu_statload, i);
                   AppendMenu(hSubMenu, MF_STRING, IDM_FLAGLOAD + i, buf);
           }
           InsertMenu(hMenu, 1, MF_BYPOSITION | MF_POPUP,
                                                                                           (UINT32)hSubMenu, xmenu_stat);
   }
   #endif
   
 void xmenu_initialize(void) {  void xmenu_initialize(void) {
   
         HMENU   hMenu;          HMENU   hMenu;
         HMENU   hSubMenu;          HMENU   hSubMenu;
         int             i;  
         char    buf[16];  
   
         hMenu = np2class_gethmenu(hWndMain);          hMenu = np2class_gethmenu(hWndMain);
   
Line 211  void xmenu_initialize(void) { Line 235  void xmenu_initialize(void) {
 #endif  #endif
   
         // めにゅー追加          // めにゅー追加
   #if defined(SUPPORT_STATSAVE)
         if (np2oscfg.statsave) {          if (np2oscfg.statsave) {
                 hSubMenu = CreatePopupMenu();                  addstatsavemenu(hMenu);
                 for (i=0; i<STATSAVEMAX; i++) {          }
                         SPRINTF(buf, xmenu_statsave, i);  #endif
                         AppendMenu(hSubMenu, MF_STRING, IDM_FLAGSAVE + i, buf);  
                 }          if (np2oscfg.I286SAVE) {
                 AppendMenu(hSubMenu, MF_MENUBARBREAK, 0, NULL);                  hSubMenu = GetSubMenu(hMenu, 6);
                 for (i=0; i<STATSAVEMAX; i++) {                  InsertMenu(hSubMenu, 10,
                         SPRINTF(buf, xmenu_statload, i);                                          MF_BYPOSITION | MF_STRING, IDM_I286SAVE, xmenu_i286save);
                         AppendMenu(hSubMenu, MF_STRING, IDM_FLAGLOAD + i, buf);  
                 }  
                 InsertMenu(hMenu, 1, MF_BYPOSITION | MF_POPUP,  
                                                                                                 (UINT32)hSubMenu, xmenu_stat);  
         }          }
 }  }
   
Line 446  void xmenu_setsstp(BYTE value) { Line 467  void xmenu_setsstp(BYTE value) {
         CheckMenuItem(np2class_gethmenu(hWndMain), IDM_SSTP, MFCHECK(value));          CheckMenuItem(np2class_gethmenu(hWndMain), IDM_SSTP, MFCHECK(value));
 }  }
   
 void xmenu_seti286save(BYTE value) {  
   
         if (value) {  
                 InsertMenu(GetSubMenu(np2class_gethmenu(hWndMain), 6), 10,  
                                         MF_BYPOSITION | MF_STRING, IDM_I286SAVE, menu_i286save);  
         }  
 }  
   

Removed from v.1.11  
changed lines
  Added in v.1.12


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