|
|
| version 1.39, 2004/02/13 20:31:55 | version 1.44, 2004/03/24 06:07:57 |
|---|---|
| Line 41 | Line 41 |
| #include "diskdrv.h" | #include "diskdrv.h" |
| #include "fddfile.h" | #include "fddfile.h" |
| #include "timing.h" | #include "timing.h" |
| #include "keystat.h" | |
| #include "debugsub.h" | #include "debugsub.h" |
| #include "keydisp.h" | #include "keydisp.h" |
| #include "kdispwin.h" | #include "kdispwin.h" |
| Line 275 static int flagload(const char *ext, con | Line 276 static int flagload(const char *ext, con |
| winuienter(); | winuienter(); |
| id = IDYES; | id = IDYES; |
| ret = statsave_check(path, buf, sizeof(buf)); | ret = statsave_check(path, buf, sizeof(buf)); |
| if (ret & (~NP2FLAG_DISKCHG)) { | if (ret & (~STATFLAG_DISKCHG)) { |
| MessageBox(hWndMain, "Couldn't restart", title, MB_OK | MB_ICONSTOP); | MessageBox(hWndMain, "Couldn't restart", title, MB_OK | MB_ICONSTOP); |
| id = IDNO; | id = IDNO; |
| } | } |
| else if ((!force) && (ret & NP2FLAG_DISKCHG)) { | else if ((!force) && (ret & STATFLAG_DISKCHG)) { |
| char buf2[1024 + 256]; | char buf2[1024 + 256]; |
| wsprintf(buf2, "Conflict!\n\n%s\nContinue?", buf); | wsprintf(buf2, "Conflict!\n\n%s\nContinue?", buf); |
| id = MessageBox(hWndMain, buf2, title, | id = MessageBox(hWndMain, buf2, title, |
| Line 395 static void np2cmd(HWND hWnd, UINT16 cmd | Line 396 static void np2cmd(HWND hWnd, UINT16 cmd |
| toolwin_setfdd(1, NULL); | toolwin_setfdd(1, NULL); |
| break; | break; |
| case IDM_FDD3OPEN: | |
| winuienter(); | |
| dialog_changefdd(hWnd, 2); | |
| winuileave(); | |
| break; | |
| case IDM_FDD3EJECT: | |
| diskdrv_setfdd(2, NULL, 0); | |
| toolwin_setfdd(2, NULL); | |
| break; | |
| case IDM_FDD4OPEN: | |
| winuienter(); | |
| dialog_changefdd(hWnd, 3); | |
| winuileave(); | |
| break; | |
| case IDM_FDD4EJECT: | |
| diskdrv_setfdd(3, NULL, 0); | |
| toolwin_setfdd(3, NULL); | |
| break; | |
| case IDM_SASI1OPEN: | case IDM_SASI1OPEN: |
| winuienter(); | winuienter(); |
| dialog_changehdd(hWnd, 0x00); | dialog_changehdd(hWnd, 0x00); |
| Line 756 static void np2cmd(HWND hWnd, UINT16 cmd | Line 779 static void np2cmd(HWND hWnd, UINT16 cmd |
| dialog_s98(hWnd); | dialog_s98(hWnd); |
| winuileave(); | winuileave(); |
| break; | break; |
| #if defined(SUPPORT_WAVEREC) | |
| case IDM_WAVEREC: | |
| winuienter(); | |
| dialog_waverec(hWnd); | |
| winuileave(); | |
| break; | |
| #endif | |
| case IDM_DISPCLOCK: | case IDM_DISPCLOCK: |
| xmenu_setdispclk(np2oscfg.DISPCLK ^ 1); | xmenu_setdispclk(np2oscfg.DISPCLK ^ 1); |
| update |= SYS_UPDATECFG; | update |= SYS_UPDATECFG; |
| Line 1348 int WINAPI WinMain(HINSTANCE hInstance, | Line 1377 int WINAPI WinMain(HINSTANCE hInstance, |
| np2oscfg.KEYBOARD = KEY_KEY106; | np2oscfg.KEYBOARD = KEY_KEY106; |
| } | } |
| } | } |
| keystat_reset(); | keystat_initialize(); |
| np2class_initialize(hInstance); | np2class_initialize(hInstance); |
| if (!hPreInst) { | if (!hPreInst) { |