| version 1.1, 2003/10/16 17:58:59 | version 1.3, 2003/10/24 14:16:54 | 
| Line 1 | Line 1 | 
 | #include        "compiler.h" | #include        "compiler.h" | 
 | #include        "resource.h" |  | 
 | #include        "strres.h" | #include        "strres.h" | 
 |  | #include        "resource.h" | 
 | #include        "np2.h" | #include        "np2.h" | 
 | #include        "commng.h" | #include        "commng.h" | 
 | #include        "sysmng.h" | #include        "sysmng.h" | 
 | #include        "pccore.h" |  | 
 | #include        "bit2res.h" |  | 
 | #include        "dialog.h" | #include        "dialog.h" | 
 | #include        "dialogs.h" | #include        "dialogs.h" | 
 |  | #include        "bit2res.h" | 
 |  | #include        "pccore.h" | 
 |  |  | 
 |  |  | 
 | #ifdef __cplusplus | #ifdef __cplusplus | 
 | extern "C" { | extern "C" { | 
 | #endif | #endif | 
 |  |  | 
 | extern  COMMNG  cm_mpu98; | extern  COMMNG  cm_mpu98; | 
 |  |  | 
 | #ifdef __cplusplus | #ifdef __cplusplus | 
 | } | } | 
 | #endif | #endif | 
| Line 166  static void updatempu(HWND hWnd) { | Line 168  static void updatempu(HWND hWnd) { | 
 | } | } | 
 |  |  | 
 | np2oscfg.mpu.def_en = GetDlgItemCheck(hWnd, IDC_MPU98DEFE); | np2oscfg.mpu.def_en = GetDlgItemCheck(hWnd, IDC_MPU98DEFE); | 
 |  | if (cm_mpu98) { | 
 |  | cm_mpu98->msg(cm_mpu98, COMMSG_MIMPIDEFEN, np2oscfg.mpu.def_en); | 
 |  | } | 
 | GetDlgItemText(hWnd, IDC_MPU98DEFF, s.mdef, sizeof(s.mdef)); | GetDlgItemText(hWnd, IDC_MPU98DEFF, s.mdef, sizeof(s.mdef)); | 
 | if (milstr_cmp(np2oscfg.mpu.def, s.mdef)) { | if (milstr_cmp(np2oscfg.mpu.def, s.mdef)) { | 
 | milstr_ncpy(np2oscfg.mpu.def, s.mdef, sizeof(np2oscfg.mpu.def)); | milstr_ncpy(np2oscfg.mpu.def, s.mdef, sizeof(np2oscfg.mpu.def)); | 
| //              commsmidi_toneload(&mpu98_comm, s.mdef); | if (cm_mpu98) { | 
|  | cm_mpu98->msg(cm_mpu98, COMMSG_MIMPIDEFFILE, (long)s.mdef); | 
|  | } | 
 | update |= SYS_UPDATEOSCFG; | update |= SYS_UPDATEOSCFG; | 
 | } | } | 
 | sysmng_update(update); | sysmng_update(update); |