--- np2/win9x/menu.cpp 2004/02/11 17:39:59 1.11 +++ np2/win9x/menu.cpp 2004/02/13 20:31:55 1.12 @@ -29,7 +29,6 @@ static const char smenu_1280x800[] = "12 static const char smenu_memdump[] = "&Memory Dump"; static const char smenu_dbguty[] = "&Debug Utility"; -static const char menu_i286save[] = "&i286 save"; static const SMENUITEM smenuitem[] = { {smenu_toolwin, IDM_TOOLWIN}, @@ -171,9 +170,9 @@ void menu_addmenubar(HMENU popup, HMENU // ---- -static const char xmenu_stat[] = "S&tat"; -static const char xmenu_statsave[] = "Save %d"; -static const char xmenu_statload[] = "Load %d"; +static const char xmenu_i286save[] = "&i286 save"; + +#if defined(SUPPORT_SCSI) static const char xmenu_scsi[] = "SCSI #%d"; static const char xmenu_open[] = "&Open..."; static const char xmenu_remove[] = "&Remove"; @@ -191,13 +190,38 @@ static void addscsimenu(HMENU hMenu, UIN SPRINTF(buf, xmenu_scsi, drv); 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