| version 1.27, 2004/03/28 10:50:16 | version 1.31, 2005/02/07 14:46:15 | 
| Line 18 | Line 18 | 
 | #include        "winkbd.h" | #include        "winkbd.h" | 
 | #include        "ini.h" | #include        "ini.h" | 
 | #include        "menu.h" | #include        "menu.h" | 
| #include        "debugwin.h" | #include        "subwind.h" | 
 | #include        "dialog.h" | #include        "dialog.h" | 
 | #include        "cpucore.h" | #include        "cpucore.h" | 
 | #include        "pccore.h" | #include        "pccore.h" | 
| Line 69  static UINT  waitcnt = 0; | Line 69  static UINT  waitcnt = 0; | 
 | static  UINT            framemax = 1; | static  UINT            framemax = 1; | 
 | static  int                     np2opening = 1; | static  int                     np2opening = 1; | 
 | static  int                     np2quitmsg = 0; | static  int                     np2quitmsg = 0; | 
| static  BYTE    scrnmode; | static  UINT8   scrnmode; | 
 |  |  | 
 |  |  | 
 | static const char np2help[] = "np2.chm"; | static const char np2help[] = "np2.chm"; | 
| Line 88  static void winuileave(void) { | Line 88  static void winuileave(void) { | 
 | soundmng_enable(SNDPROC_MAIN); | soundmng_enable(SNDPROC_MAIN); | 
 | } | } | 
 |  |  | 
| static void changescreen(BYTE newmode) { | static void changescreen(UINT8 newmode) { | 
 |  |  | 
| BYTE    change; | UINT8   change; | 
| BYTE    renewal; | UINT8   renewal; | 
 |  |  | 
 | change = scrnmode ^ newmode; | change = scrnmode ^ newmode; | 
 | renewal = (change & SCRNMODE_FULLSCREEN); | renewal = (change & SCRNMODE_FULLSCREEN); | 
| Line 552  static void np2cmd(HWND hWnd, UINT16 cmd | Line 552  static void np2cmd(HWND hWnd, UINT16 cmd | 
 | dialog_writebmp(hWnd); | dialog_writebmp(hWnd); | 
 | winuileave(); | winuileave(); | 
 | break; | break; | 
|  | #if defined(SUPPPORT_S98) | 
 | case IDM_S98LOGGING: | case IDM_S98LOGGING: | 
 | winuienter(); | winuienter(); | 
 | dialog_s98(hWnd); | dialog_s98(hWnd); | 
 | winuileave(); | winuileave(); | 
 | break; | break; | 
|  | #endif | 
|  | #if defined(SUPPORT_WAVEREC) | 
|  | case IDM_WAVEREC: | 
|  | winuienter(); | 
|  | dialog_waverec(hWnd); | 
|  | winuileave(); | 
|  | break; | 
|  | #endif | 
 | case IDM_CALENDAR: | case IDM_CALENDAR: | 
 | winuienter(); | winuienter(); | 
 | DialogBox(hInst, MAKEINTRESOURCE(IDD_CALENDAR), | DialogBox(hInst, MAKEINTRESOURCE(IDD_CALENDAR), | 
| Line 818  static void framereset(void) { | Line 825  static void framereset(void) { | 
 |  |  | 
 | framecnt = 0; | framecnt = 0; | 
 | sysmng_updatecaption(); | sysmng_updatecaption(); | 
| debugwin_process(); | memdbg_process(); | 
|  | skbdwin_process(); | 
 | } | } | 
 |  |  | 
 | static void processwait(UINT cnt) { | static void processwait(UINT cnt) { | 
| Line 851  int WINAPI WinMain(HINSTANCE hInstance, | Line 859  int WINAPI WinMain(HINSTANCE hInstance, | 
 | file_setcd(modulefile); | file_setcd(modulefile); | 
 | np2arg_analize(lpszCmdLine); | np2arg_analize(lpszCmdLine); | 
 | initload(); | initload(); | 
 |  | memdbg_readini(); | 
 |  | skbdwin_readini(); | 
 |  |  | 
 | rand_setseed((unsigned)time(NULL)); | rand_setseed((unsigned)time(NULL)); | 
 |  |  | 
| Line 894  int WINAPI WinMain(HINSTANCE hInstance, | Line 904  int WINAPI WinMain(HINSTANCE hInstance, | 
 | return(FALSE); | return(FALSE); | 
 | } | } | 
 | } | } | 
| debugwin_initapp(hInstance); | memdbg_initialize(hInstance); | 
|  | skbdwin_initialize(hInstance); | 
 |  |  | 
 | mousemng_initialize(); | mousemng_initialize(); | 
 |  |  | 
| Line 978  int WINAPI WinMain(HINSTANCE hInstance, | Line 989  int WINAPI WinMain(HINSTANCE hInstance, | 
 |  |  | 
 | pccore_reset(); | pccore_reset(); | 
 |  |  | 
 | debugwin_create(); |  | 
 |  |  | 
 | np2opening = 0; | np2opening = 0; | 
 |  |  | 
 | // れじうむ | // れじうむ | 
| Line 1013  int WINAPI WinMain(HINSTANCE hInstance, | Line 1022  int WINAPI WinMain(HINSTANCE hInstance, | 
 | } | } | 
 | } | } | 
 |  |  | 
 |  | memdbg_create(); | 
 |  | skbdwin_create(); | 
 |  |  | 
 | while(1) { | while(1) { | 
 | if (PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE)) { | if (PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE)) { | 
 | if (!GetMessage(&msg, NULL, 0, 0)) { | if (!GetMessage(&msg, NULL, 0, 0)) { | 
| Line 1103  int WINAPI WinMain(HINSTANCE hInstance, | Line 1115  int WINAPI WinMain(HINSTANCE hInstance, | 
 | #endif | #endif | 
 |  |  | 
 | pccore_term(); | pccore_term(); | 
| debugwin_destroy(); | memdbg_destroy(); | 
|  | skbdwin_destroy(); | 
 |  |  | 
 | soundmng_deinitialize(); | soundmng_deinitialize(); | 
 | scrnmng_destroy(); | scrnmng_destroy(); | 
 |  |  | 
 | if (sys_updates & (SYS_UPDATECFG | SYS_UPDATEOSCFG)) { | if (sys_updates & (SYS_UPDATECFG | SYS_UPDATEOSCFG)) { | 
 | initsave(); | initsave(); | 
 |  | memdbg_writeini(); | 
 |  | skbdwin_writeini(); | 
 | } | } | 
 |  |  | 
 |  | skbdwin_deinitialize(); | 
 |  |  | 
 | TRACETERM(); | TRACETERM(); | 
 | _MEM_USED("report.txt"); | _MEM_USED("report.txt"); | 
 | dosio_term(); | dosio_term(); |