BOOL sysmenu_menuopen(BOOL menu, int x, int y) { GAMECFG gc; int version; int i; gc = &gamecore.gamecfg; if (menu) { menusys_sethide(MID_POPUP, FALSE); version = gamecore.sys.version; if (version == EXEVER_MYU) { for (i=MID_SKIP; i<=MID_EXIT; i++) { menusys_sethide((MENUID)i, TRUE); } menusys_sethide(MID_HELP, FALSE); } #ifdef SUPPORT_FULLSCREEN menusys_setenable(MID_SCREEN, TRUE); menusys_settext(MID_SCREEN, (char *)(gc->fullscreen?str_winmd0:str_winmd1)); #endif menusys_setenable(MID_SAVE, gc->enablesave); menusys_setcheck(MID_SKIP, gc->skip); menusys_setcheck(MID_READSKIP, gc->readskip); menusys_settext(MID_AUTO, (char *)(gc->autoclick?str_auto2:str_auto)); } else { menusys_sethide(MID_POPUP, TRUE); } return(menusys_open(x, y)); }
BOOL sysmenu_menuopen(UINT menutype, int x, int y) { UINT8 b; menusys_setcheck(MID_DISPSYNC, (np2cfg.DISPSYNC & 1)); menusys_setcheck(MID_RASTER, (np2cfg.RASTER & 1)); menusys_setcheck(MID_NOWAIT, (np2oscfg.NOWAIT & 1)); b = np2oscfg.DRAW_SKIP; menusys_setcheck(MID_AUTOFPS, (b == 0)); menusys_setcheck(MID_60FPS, (b == 1)); menusys_setcheck(MID_30FPS, (b == 2)); menusys_setcheck(MID_20FPS, (b == 3)); menusys_setcheck(MID_15FPS, (b == 4)); b = np2cfg.KEY_MODE; menusys_setcheck(MID_KEY, (b == 0)); menusys_setcheck(MID_JOY1, (b == 1)); menusys_setcheck(MID_JOY2, (b == 2)); menusys_setcheck(MID_MOUSEKEY, (b == 3)); b = np2cfg.XSHIFT; menusys_setcheck(MID_XSHIFT, (b & 1)); menusys_setcheck(MID_XCTRL, (b & 2)); menusys_setcheck(MID_XGRPH, (b & 4)); b = np2oscfg.F12KEY; menusys_setcheck(MID_F12MOUSE, (b == 0)); menusys_setcheck(MID_F12COPY, (b == 1)); menusys_setcheck(MID_F12STOP, (b == 2)); menusys_setcheck(MID_F12EQU, (b == 3)); menusys_setcheck(MID_F12COMMA, (b == 4)); b = np2cfg.BEEP_VOL & 3; menusys_setcheck(MID_BEEPOFF, (b == 0)); menusys_setcheck(MID_BEEPLOW, (b == 1)); menusys_setcheck(MID_BEEPMID, (b == 2)); menusys_setcheck(MID_BEEPHIGH, (b == 3)); b = np2cfg.SOUND_SW; menusys_setcheck(MID_NOSOUND, (b == 0x00)); menusys_setcheck(MID_PC9801_14, (b == 0x01)); menusys_setcheck(MID_PC9801_26K, (b == 0x02)); menusys_setcheck(MID_PC9801_86, (b == 0x04)); menusys_setcheck(MID_PC9801_26_86, (b == 0x06)); menusys_setcheck(MID_PC9801_86_CB, (b == 0x14)); menusys_setcheck(MID_PC9801_118, (b == 0x08)); menusys_setcheck(MID_SPEAKBOARD, (b == 0x20)); menusys_setcheck(MID_SPARKBOARD, (b == 0x40)); menusys_setcheck(MID_AMD98, (b == 0x80)); menusys_setcheck(MID_JASTSND, (np2oscfg.jastsnd & 1)); menusys_setcheck(MID_SEEKSND, (np2cfg.MOTOR & 1)); b = np2cfg.EXTMEM; menusys_setcheck(MID_MEM640, (b == 0)); menusys_setcheck(MID_MEM16, (b == 1)); menusys_setcheck(MID_MEM36, (b == 3)); menusys_setcheck(MID_MEM76, (b == 7)); menusys_setcheck(MID_JOYX, (np2cfg.BTN_MODE & 1)); menusys_setcheck(MID_RAPID, (np2cfg.BTN_RAPID & 1)); menusys_setcheck(MID_MSRAPID, (np2cfg.MOUSERAPID & 1)); return(menusys_open(x, y)); }