--- np2/macos9/np2.cpp 2004/03/15 09:58:13 1.34 +++ np2/macos9/np2.cpp 2004/05/21 15:02:31 1.36 @@ -53,6 +53,11 @@ static BYTE scrnmode; #endif static char target[MAX_PATH] = DEFAULTPATH; +#if !defined(SUPPORT_PC9821) +static const char np2app[] = "np2"; +#else +static const char np2app[] = "np21"; +#endif static const char np2resume[] = "sav"; @@ -556,6 +561,16 @@ static void HandleMenuChoice(long wParam update |= SYS_UPDATECFG; break; + case IDM_MEM116: + menu_setextmem(11); + update |= SYS_UPDATECFG; + break; + + case IDM_MEM136: + menu_setextmem(13); + update |= SYS_UPDATECFG; + break; + case IDM_BMPSAVE: dialog_writebmp(); break; @@ -745,7 +760,7 @@ static void processwait(UINT waitcnt) { static void getstatfilename(char *path, const char *ext, int size) { - file_cpyname(path, file_getcd("np2"), size); + file_cpyname(path, file_getcd(np2app), size); file_catname(path, str_dot, size); file_catname(path, ext, size); } @@ -811,8 +826,13 @@ int main(int argc, char *argv[]) { keystat_initialize(); SetRect(&wRect, np2oscfg.posx, np2oscfg.posy, 100, 100); +#if !defined(SUPPORT_PC9821) hWndMain = NewWindow(0, &wRect, "\pNeko Project II", FALSE, noGrowDocProc, (WindowPtr)-1, TRUE, 0); +#else + hWndMain = NewWindow(0, &wRect, "\pNeko Project 21", FALSE, + noGrowDocProc, (WindowPtr)-1, TRUE, 0); +#endif if (!hWndMain) { TRACETERM(); macossub_term();