Diff for /np2/win9x/np2.cpp between versions 1.51 and 1.58

version 1.51, 2004/04/16 06:14:57 version 1.58, 2005/02/16 09:31:55
Line 51 Line 51
 #define         OPENING_WAIT            1500  #define         OPENING_WAIT            1500
 #endif  #endif
   
 static  char            szClassName[] = "NP2-MainWindow";  static  OEMCHAR         szClassName[] = OEMTEXT("NP2-MainWindow");
                 HWND            hWndMain;                  HWND            hWndMain;
                 HINSTANCE       hInst;                  HINSTANCE       hInst;
                 HINSTANCE       hPrev;                  HINSTANCE       hPrev;
                 int                     mmxflag;                  int                     mmxflag;
                 BYTE            np2break = 0;                                                                   // ver0.30                  UINT8           np2break = 0;                                                                   // ver0.30
                 BOOL            winui_en;                  BOOL            winui_en;
   
                 NP2OSCFG        np2oscfg = {                  NP2OSCFG        np2oscfg = {
                                                 "Neko Project II", "NP2",  #if !defined(SUPPORT_PC9821)
                                                   OEMTEXT("Neko Project II"),
   #else
                                                   OEMTEXT("Neko Project 21"),
   #endif
                                                   OEMTEXT("NP2"),
                                                 CW_USEDEFAULT, CW_USEDEFAULT, 1, 1, 0, 1, 0, 0,                                                  CW_USEDEFAULT, CW_USEDEFAULT, 1, 1, 0, 1, 0, 0,
                                                 0, 0, KEY_UNKNOWN, 0,                                                  0, 0, KEY_UNKNOWN, 0,
                                                 0, 0, 0, {1, 2, 2, 1},                                                  0, 0, 0, {1, 2, 2, 1},
                                                 {5, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34                                                  {5, 0, 0x3e, 19200,
                                                 {0, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34                                                   OEMTEXT(""), OEMTEXT(""), OEMTEXT(""), OEMTEXT("")},
                                                 {0, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34                                                  {0, 0, 0x3e, 19200,
                                                 {0, 0, 0x3e, 19200, "", "", "", ""},            // ver0.34                                                   OEMTEXT(""), OEMTEXT(""), OEMTEXT(""), OEMTEXT("")},
                                                   {0, 0, 0x3e, 19200,
                                                    OEMTEXT(""), OEMTEXT(""), OEMTEXT(""), OEMTEXT("")},
                                                   {0, 0, 0x3e, 19200,
                                                    OEMTEXT(""), OEMTEXT(""), OEMTEXT(""), OEMTEXT("")},
                                                 0xffffff, 0xffbf6a, 0, 0,                                                  0xffffff, 0xffbf6a, 0, 0,
                                                 0, 1, 0, 9801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};                                                  0, 1, 0, 9801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
   
                 char            fddfolder[MAX_PATH];                  OEMCHAR         fddfolder[MAX_PATH];
                 char            hddfolder[MAX_PATH];                  OEMCHAR         hddfolder[MAX_PATH];
                 char            bmpfilefolder[MAX_PATH];                  OEMCHAR         bmpfilefolder[MAX_PATH];
                 char            modulefile[MAX_PATH];                  OEMCHAR         modulefile[MAX_PATH];
   
 static  UINT            framecnt = 0;  static  UINT            framecnt = 0;
 static  UINT            waitcnt = 0;  static  UINT            waitcnt = 0;
 static  UINT            framemax = 1;  static  UINT            framemax = 1;
 static  BYTE            np2stopemulate = 0;  static  UINT8           np2stopemulate = 0;
 static  int                     np2opening = 1;  static  int                     np2opening = 1;
 static  int                     np2quitmsg = 0;  static  int                     np2quitmsg = 0;
 static  HMENU           hStat = NULL;  static  HMENU           hStat = NULL;
 static  BYTE            scrnmode;  static  UINT8           scrnmode;
 static  WINLOCEX        smwlex;  static  WINLOCEX        smwlex;
   
 static const char np2help[] = "np2.chm";  static const OEMCHAR np2help[] = OEMTEXT("np2.chm");
 static const char np2flagext[] = "S%02d";  static const OEMCHAR np2flagext[] = OEMTEXT("S%02d");
   
   
 static void winuienter(void) {  static void winuienter(void) {
Line 127  WINLOCEX np2_winlocexallwin(HWND base) { Line 136  WINLOCEX np2_winlocexallwin(HWND base) {
         return(winlocex_create(base, list, cnt));          return(winlocex_create(base, list, cnt));
 }  }
   
 static void changescreen(BYTE newmode) {  static void changescreen(UINT8 newmode) {
   
         BYTE            change;          UINT8           change;
         BYTE            renewal;          UINT8           renewal;
         WINLOCEX        wlex;          WINLOCEX        wlex;
   
         change = scrnmode ^ newmode;          change = scrnmode ^ newmode;
Line 209  static void wincentering(HWND hWnd) { Line 218  static void wincentering(HWND hWnd) {
         MoveWindow(hWndMain, np2oscfg.winx, np2oscfg.winy, width, height, TRUE);          MoveWindow(hWndMain, np2oscfg.winx, np2oscfg.winy, width, height, TRUE);
 }  }
   
 void np2active_renewal(void) {                                                                  // ver0.30  void np2active_renewal(void) {                                                                          // ver0.30
   
         if (np2break & (~NP2BREAK_MAIN)) {          if (np2break & (~NP2BREAK_MAIN)) {
                 np2stopemulate = 2;                  np2stopemulate = 2;
Line 239  void np2active_renewal(void) {         / Line 248  void np2active_renewal(void) {         /
 // ---- resume and statsave  // ---- resume and statsave
   
 #if defined(SUPPORT_RESUME) || defined(SUPPORT_STATSAVE)  #if defined(SUPPORT_RESUME) || defined(SUPPORT_STATSAVE)
 static void getstatfilename(char *path, const char *ext, int size) {  static void getstatfilename(OEMCHAR *path, const OEMCHAR *ext, int size) {
   
         file_cpyname(path, modulefile, size);          file_cpyname(path, modulefile, size);
         file_cutext(path);          file_cutext(path);
Line 247  static void getstatfilename(char *path,  Line 256  static void getstatfilename(char *path, 
         file_catname(path, ext, size);          file_catname(path, ext, size);
 }  }
   
 static int flagsave(const char *ext) {  static int flagsave(const OEMCHAR *ext) {
   
         int             ret;          int             ret;
         char    path[MAX_PATH];          OEMCHAR path[MAX_PATH];
   
         getstatfilename(path, ext, sizeof(path));          getstatfilename(path, ext, NELEMENTS(path));
         soundmng_stop();          soundmng_stop();
         ret = statsave_save(path);          ret = statsave_save(path);
         if (ret) {          if (ret) {
Line 262  static int flagsave(const char *ext) { Line 271  static int flagsave(const char *ext) {
         return(ret);          return(ret);
 }  }
   
 static void flagdelete(const char *ext) {  static void flagdelete(const OEMCHAR *ext) {
   
         char    path[MAX_PATH];          OEMCHAR path[MAX_PATH];
   
         getstatfilename(path, ext, sizeof(path));          getstatfilename(path, ext, NELEMENTS(path));
         file_delete(path);          file_delete(path);
 }  }
   
 static int flagload(const char *ext, const char *title, BOOL force) {  static int flagload(const OEMCHAR *ext, const OEMCHAR *title, BOOL force) {
   
         int             ret;          int             ret;
         int             id;          int             id;
         char    path[MAX_PATH];          OEMCHAR path[MAX_PATH];
         char    buf[1024];          OEMCHAR buf[1024];
   
         getstatfilename(path, ext, sizeof(path));          getstatfilename(path, ext, NELEMENTS(path));
         winuienter();          winuienter();
         id = IDYES;          id = IDYES;
         ret = statsave_check(path, buf, sizeof(buf));          ret = statsave_check(path, buf, NELEMENTS(buf));
         if (ret & (~STATFLAG_DISKCHG)) {          if (ret & (~STATFLAG_DISKCHG)) {
                 MessageBox(hWndMain, "Couldn't restart", title, MB_OK | MB_ICONSTOP);                  MessageBox(hWndMain, OEMTEXT("Couldn't restart"), title, MB_OK | MB_ICONSTOP);
                 id = IDNO;                  id = IDNO;
         }          }
         else if ((!force) && (ret & STATFLAG_DISKCHG)) {          else if ((!force) && (ret & STATFLAG_DISKCHG)) {
                 char buf2[1024 + 256];                  OEMCHAR buf2[1024 + 256];
                 wsprintf(buf2, "Conflict!\n\n%s\nContinue?", buf);                  OEMSPRINTF(buf2, OEMTEXT("Conflict!\n\n%s\nContinue?"), buf);
                 id = MessageBox(hWndMain, buf2, title,                  id = MessageBox(hWndMain, buf2, title,
                                                                                 MB_YESNOCANCEL | MB_ICONQUESTION);                                                                                  MB_YESNOCANCEL | MB_ICONQUESTION);
         }          }
Line 339  static void np2cmd(HWND hWnd, UINT16 cmd Line 348  static void np2cmd(HWND hWnd, UINT16 cmd
                         }                          }
                         else if (sstpconfirm_reset()) {                          else if (sstpconfirm_reset()) {
                                 winuienter();                                  winuienter();
                                 if (MessageBox(hWnd, "Sure?", "Reset",                                  if (MessageBox(hWnd, OEMTEXT("Sure?"), OEMTEXT("Reset"),
                                                                         MB_ICONQUESTION | MB_YESNO) == IDYES) {                                                                          MB_ICONQUESTION | MB_YESNO) == IDYES) {
                                         b = TRUE;                                          b = TRUE;
                                 }                                  }
Line 358  static void np2cmd(HWND hWnd, UINT16 cmd Line 367  static void np2cmd(HWND hWnd, UINT16 cmd
                         sstpmsg_config();                          sstpmsg_config();
                         DialogBox(hInst, MAKEINTRESOURCE(IDD_CONFIG),                          DialogBox(hInst, MAKEINTRESOURCE(IDD_CONFIG),
                                                                         hWnd, (DLGPROC)CfgDialogProc);                                                                          hWnd, (DLGPROC)CfgDialogProc);
                           if (!scrnmng_isfullscreen()) {
                                   UINT8 thick;
                                   thick = (GetWindowLong(hWnd, GWL_STYLE) & WS_THICKFRAME)?1:0;
                                   if (thick != np2oscfg.thickframe) {
                                           WINLOCEX wlex;
                                           wlex = np2_winlocexallwin(hWnd);
                                           winlocex_setholdwnd(wlex, hWnd);
                                           np2class_frametype(hWnd, np2oscfg.thickframe);
                                           winlocex_move(wlex);
                                           winlocex_destroy(wlex);
                                   }
                           }
                         winuileave();                          winuileave();
                         break;                          break;
   
Line 776  static void np2cmd(HWND hWnd, UINT16 cmd Line 797  static void np2cmd(HWND hWnd, UINT16 cmd
                         winuileave();                          winuileave();
                         break;                          break;
   
                 case IDM_MIDIPANIC:                                                                     // ver0.29                  case IDM_MIDIPANIC:
                         rs232c_midipanic();                          rs232c_midipanic();
                         mpu98ii_midipanic();                          mpu98ii_midipanic();
                         pc9861k_midipanic();                          pc9861k_midipanic();
Line 793  static void np2cmd(HWND hWnd, UINT16 cmd Line 814  static void np2cmd(HWND hWnd, UINT16 cmd
                         dialog_writebmp(hWnd);                          dialog_writebmp(hWnd);
                         winuileave();                          winuileave();
                         break;                          break;
 #if defined(SUPPPORT_S98)  #if defined(SUPPORT_S98)
                 case IDM_S98LOGGING:                  case IDM_S98LOGGING:
                         winuienter();                          winuienter();
                         dialog_s98(hWnd);                          dialog_s98(hWnd);
Line 877  static void np2cmd(HWND hWnd, UINT16 cmd Line 898  static void np2cmd(HWND hWnd, UINT16 cmd
 #if defined(SUPPORT_STATSAVE)  #if defined(SUPPORT_STATSAVE)
                         if ((cmd >= IDM_FLAGSAVE) &&                          if ((cmd >= IDM_FLAGSAVE) &&
                                 (cmd < (IDM_FLAGSAVE + SUPPORT_STATSAVE))) {                                  (cmd < (IDM_FLAGSAVE + SUPPORT_STATSAVE))) {
                                 char ext[4];                                  OEMCHAR ext[4];
                                 SPRINTF(ext, np2flagext, cmd - IDM_FLAGSAVE);                                  OEMSPRINTF(ext, np2flagext, cmd - IDM_FLAGSAVE);
                                 flagsave(ext);                                  flagsave(ext);
                         }                          }
                         else if ((cmd >= IDM_FLAGLOAD) &&                          else if ((cmd >= IDM_FLAGLOAD) &&
                                 (cmd < (IDM_FLAGLOAD + SUPPORT_STATSAVE))) {                                  (cmd < (IDM_FLAGLOAD + SUPPORT_STATSAVE))) {
                                 char ext[4];                                  OEMCHAR ext[4];
                                 SPRINTF(ext, np2flagext, cmd - IDM_FLAGLOAD);                                  OEMSPRINTF(ext, np2flagext, cmd - IDM_FLAGLOAD);
                                 flagload(ext, "Status Load", TRUE);                                  flagload(ext, OEMTEXT("Status Load"), TRUE);
                         }                          }
 #endif  #endif
                         break;                          break;
Line 982  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1003  LRESULT CALLBACK WndProc(HWND hWnd, UINT
                                         viewer_open();                                          viewer_open();
                                         break;                                          break;
   
                                 case IDM_SCRNMUL4:                                                              // ver0.26                                  case IDM_SCRNMUL4:
                                 case IDM_SCRNMUL6:                                  case IDM_SCRNMUL6:
                                 case IDM_SCRNMUL8:                                  case IDM_SCRNMUL8:
                                 case IDM_SCRNMUL10:                                  case IDM_SCRNMUL10:
Line 1059  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1080  LRESULT CALLBACK WndProc(HWND hWnd, UINT
                                 GetClientRect(hWnd, &rect);                                  GetClientRect(hWnd, &rect);
                                 width = rect.right - rect.left;                                  width = rect.right - rect.left;
                                 height = rect.bottom - rect.top;                                  height = rect.bottom - rect.top;
                                 hbmp = LoadBitmap(hinst, "NP2BMP");                                  hbmp = LoadBitmap(hinst, OEMTEXT("NP2BMP"));
                                 GetObject(hbmp, sizeof(BITMAP), &bmp);                                  GetObject(hbmp, sizeof(BITMAP), &bmp);
                                 hbrush = (HBRUSH)SelectObject(hdc,                                  hbrush = (HBRUSH)SelectObject(hdc,
                                                                                                 GetStockObject(BLACK_BRUSH));                                                                                                  GetStockObject(BLACK_BRUSH));
Line 1210  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1231  LRESULT CALLBACK WndProc(HWND hWnd, UINT
                         }                          }
                         break;                          break;
   
                 case WM_MBUTTONDOWN:                                                                    // ver0.26                  case WM_MBUTTONDOWN:
                         mousemng_toggle(MOUSEPROC_SYSTEM);                          mousemng_toggle(MOUSEPROC_SYSTEM);
                         xmenu_setmouse(np2oscfg.MOUSE_SW ^ 1);                          xmenu_setmouse(np2oscfg.MOUSE_SW ^ 1);
                         sysmng_update(SYS_UPDATECFG);                          sysmng_update(SYS_UPDATECFG);
Line 1262  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1283  LRESULT CALLBACK WndProc(HWND hWnd, UINT
                         }                          }
                         else if (sstpconfirm_exit()) {                          else if (sstpconfirm_exit()) {
                                 winuienter();                                  winuienter();
                                 if (MessageBox(hWnd, "Sure?", "Exit",                                  if (MessageBox(hWnd, OEMTEXT("Sure?"), OEMTEXT("Exit"),
                                                                         MB_ICONQUESTION | MB_YESNO) == IDYES) {                                                                          MB_ICONQUESTION | MB_YESNO) == IDYES) {
                                         b = TRUE;                                          b = TRUE;
                                 }                                  }
Line 1344  static void framereset(UINT cnt) { Line 1365  static void framereset(UINT cnt) {
   
         framecnt = 0;          framecnt = 0;
         scrnmng_dispclock();          scrnmng_dispclock();
         kdispwin_draw((BYTE)cnt);          kdispwin_draw((UINT8)cnt);
         skbdwin_process();          skbdwin_process();
         mdbgwin_process();          mdbgwin_process();
         toolwin_draw((BYTE)cnt);          toolwin_draw((UINT8)cnt);
         viewer_allreload(FALSE);          viewer_allreload(FALSE);
         if (np2oscfg.DISPCLK & 3) {          if (np2oscfg.DISPCLK & 3) {
                 if (sysmng_workclockrenewal()) {                  if (sysmng_workclockrenewal()) {
Line 1375  int WINAPI WinMain(HINSTANCE hInstance,  Line 1396  int WINAPI WinMain(HINSTANCE hInstance, 
         MSG                     msg;          MSG                     msg;
         HWND            hWnd;          HWND            hWnd;
         UINT            i;          UINT            i;
           DWORD           style;
 #ifdef OPENING_WAIT  #ifdef OPENING_WAIT
         UINT32          tick;          UINT32          tick;
 #endif  #endif
           BOOL            xrollkey;
   
         _MEM_INIT();          _MEM_INIT();
   
         GetModuleFileName(NULL, modulefile, sizeof(modulefile));          GetModuleFileName(NULL, modulefile, NELEMENTS(modulefile));
         dosio_init();          dosio_init();
         file_setcd(modulefile);          file_setcd(modulefile);
         np2arg_analize(lpszCmdLine);          np2arg_analize(lpszCmdLine);
Line 1393  int WINAPI WinMain(HINSTANCE hInstance,  Line 1416  int WINAPI WinMain(HINSTANCE hInstance, 
   
         rand_setseed((unsigned)time(NULL));          rand_setseed((unsigned)time(NULL));
   
         CopyMemory(szClassName, np2oscfg.winid, 3);          CopyMemory(szClassName, np2oscfg.winid, 3 * sizeof(OEMCHAR));
   
         if ((hWnd = FindWindow(szClassName, NULL)) != NULL) {          if ((hWnd = FindWindow(szClassName, NULL)) != NULL) {
                 sstpmsg_running();                  sstpmsg_running();
Line 1409  int WINAPI WinMain(HINSTANCE hInstance,  Line 1432  int WINAPI WinMain(HINSTANCE hInstance, 
         mmxflag += (np2oscfg.disablemmx)?MMXFLAG_DISABLE:0;          mmxflag += (np2oscfg.disablemmx)?MMXFLAG_DISABLE:0;
         TRACEINIT();          TRACEINIT();
   
         if (np2oscfg.KEYBOARD >= KEY_TYPEMAX) {                                                 // ver0.28          xrollkey = (np2oscfg.xrollkey == 0);
           if (np2oscfg.KEYBOARD >= KEY_TYPEMAX) {
                 int keytype = GetKeyboardType(1);                  int keytype = GetKeyboardType(1);
                 if ((keytype & 0xff00) == 0x0d00) {                  if ((keytype & 0xff00) == 0x0d00) {
                         np2oscfg.KEYBOARD = KEY_PC98;                          np2oscfg.KEYBOARD = KEY_PC98;
                           xrollkey = !xrollkey;
                 }                  }
                 else if (!keytype) {                  else if (!keytype) {
                         np2oscfg.KEYBOARD = KEY_KEY101;                          np2oscfg.KEYBOARD = KEY_KEY101;
Line 1421  int WINAPI WinMain(HINSTANCE hInstance,  Line 1446  int WINAPI WinMain(HINSTANCE hInstance, 
                         np2oscfg.KEYBOARD = KEY_KEY106;                          np2oscfg.KEYBOARD = KEY_KEY106;
                 }                  }
         }          }
         winkbd_roll(np2oscfg.KEYBOARD != KEY_PC98);          winkbd_roll(xrollkey);
         winkbd_setf12(np2oscfg.F12COPY);          winkbd_setf12(np2oscfg.F12COPY);
         keystat_initialize();          keystat_initialize();
   
Line 1449  int WINAPI WinMain(HINSTANCE hInstance,  Line 1474  int WINAPI WinMain(HINSTANCE hInstance, 
   
         mousemng_initialize();          mousemng_initialize();
   
         hWnd = CreateWindowEx(0, szClassName, np2oscfg.titles,          style = WS_OVERLAPPED | WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX;
                                                 WS_OVERLAPPED | WS_SYSMENU | WS_CAPTION |          if (np2oscfg.thickframe) {
                                                 WS_THICKFRAME | WS_MINIMIZEBOX,                  style |= WS_THICKFRAME;
           }
           hWnd = CreateWindowEx(0, szClassName, np2oscfg.titles, style,
                                                 np2oscfg.winx, np2oscfg.winy, 640, 400,                                                  np2oscfg.winx, np2oscfg.winy, 640, 400,
                                                 NULL, NULL, hInstance, NULL);                                                  NULL, NULL, hInstance, NULL);
         hWndMain = hWnd;          hWndMain = hWnd;
Line 1491  int WINAPI WinMain(HINSTANCE hInstance,  Line 1518  int WINAPI WinMain(HINSTANCE hInstance, 
         xmenu_initialize();          xmenu_initialize();
         DrawMenuBar(hWnd);          DrawMenuBar(hWnd);
   
         // ver0.30          if (file_attr_c(np2help) == (short)-1) {                                                // ver0.30
         if (file_attr_c(np2help) == (short)-1) {  
                 EnableMenuItem(GetMenu(hWnd), IDM_HELP, MF_GRAYED);                  EnableMenuItem(GetMenu(hWnd), IDM_HELP, MF_GRAYED);
         }          }
   
Line 1501  int WINAPI WinMain(HINSTANCE hInstance,  Line 1527  int WINAPI WinMain(HINSTANCE hInstance, 
         sysmenu_setwinsnap(np2oscfg.WINSNAP);          sysmenu_setwinsnap(np2oscfg.WINSNAP);
         sysmenu_setbackground(np2oscfg.background);          sysmenu_setbackground(np2oscfg.background);
         sysmenu_setbgsound(np2oscfg.background);          sysmenu_setbgsound(np2oscfg.background);
         sysmenu_setscrnmul(8);                                                                          // ver0.26          sysmenu_setscrnmul(8);
   
         scrnmode = 0;          scrnmode = 0;
         if (np2arg.fullscreen) {          if (np2arg.fullscreen) {
Line 1514  int WINAPI WinMain(HINSTANCE hInstance,  Line 1540  int WINAPI WinMain(HINSTANCE hInstance, 
                 scrnmode ^= SCRNMODE_FULLSCREEN;                  scrnmode ^= SCRNMODE_FULLSCREEN;
                 if (scrnmng_create(scrnmode) != SUCCESS) {                  if (scrnmng_create(scrnmode) != SUCCESS) {
                         if (sstpmsg_dxerror()) {                          if (sstpmsg_dxerror()) {
                                 MessageBox(hWnd, "Couldn't create DirectDraw Object",                                  MessageBox(hWnd, OEMTEXT("Couldn't create DirectDraw Object"),
                                                                                 np2oscfg.titles, MB_OK | MB_ICONSTOP);                                                                                  np2oscfg.titles, MB_OK | MB_ICONSTOP);
                         }                          }
                         return(FALSE);                          return(FALSE);
Line 1522  int WINAPI WinMain(HINSTANCE hInstance,  Line 1548  int WINAPI WinMain(HINSTANCE hInstance, 
         }          }
   
         if (soundmng_initialize() == SUCCESS) {          if (soundmng_initialize() == SUCCESS) {
                 soundmng_pcmload(SOUND_PCMSEEK, "SEEKWAV", EXTROMIO_RES);                  soundmng_pcmload(SOUND_PCMSEEK, OEMTEXT("SEEKWAV"), EXTROMIO_RES);
                 soundmng_pcmload(SOUND_PCMSEEK1, "SEEK1WAV", EXTROMIO_RES);                  soundmng_pcmload(SOUND_PCMSEEK1, OEMTEXT("SEEK1WAV"), EXTROMIO_RES);
                 soundmng_pcmvolume(SOUND_PCMSEEK, np2cfg.MOTORVOL);                  soundmng_pcmvolume(SOUND_PCMSEEK, np2cfg.MOTORVOL);
                 soundmng_pcmvolume(SOUND_PCMSEEK1, np2cfg.MOTORVOL);                  soundmng_pcmvolume(SOUND_PCMSEEK1, np2cfg.MOTORVOL);
         }          }
Line 1580  int WINAPI WinMain(HINSTANCE hInstance,  Line 1606  int WINAPI WinMain(HINSTANCE hInstance, 
         }          }
 #endif  #endif
   
 //      リセットしてから… コマンドラインのディスク挿入。                               // ver0.29  //      リセットしてから… コマンドラインのディスク挿入。
         for (i=0; i<4; i++) {          for (i=0; i<4; i++) {
                 if (np2arg.disk[i]) {                  if (np2arg.disk[i]) {
                         milstr_ncpy(diskdrv_fname[i], np2arg.disk[i], MAX_PATH);                          milstr_ncpy(diskdrv_fname[i], np2arg.disk[i], NELEMENTS(diskdrv_fname[0]));
                         diskdrv_delay[i] = 1;                          diskdrv_delay[i] = 1;
                 }                  }
         }          }
Line 1727  int WINAPI WinMain(HINSTANCE hInstance,  Line 1753  int WINAPI WinMain(HINSTANCE hInstance, 
         _MEM_USED("report.txt");          _MEM_USED("report.txt");
         dosio_term();          dosio_term();
   
         viewer_term();                                                                                          // ver0.30          viewer_term();                                                                                                  // ver0.30
   
         return(msg.wParam);          return(msg.wParam);
 }  }

Removed from v.1.51  
changed lines
  Added in v.1.58


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