--- np2/win9xc/commng.cpp 2003/10/25 09:08:24 1.2 +++ np2/win9xc/commng.cpp 2005/02/07 14:46:15 1.5 @@ -1,25 +1,27 @@ #include "compiler.h" +#include "np2.h" #include "commng.h" -#include "cmmidi.h" +#include "cmver.h" +#include "cmjasts.h" // ---- non connect -static UINT ncread(COMMNG self, BYTE *data) { +static UINT ncread(COMMNG self, UINT8 *data) { (void)self; (void)data; return(0); } -static UINT ncwrite(COMMNG self, BYTE data) { +static UINT ncwrite(COMMNG self, UINT8 data) { (void)self; (void)data; return(0); } -static BYTE ncgetstat(COMMNG self) { +static UINT8 ncgetstat(COMMNG self) { (void)self; return(0xf0); @@ -44,7 +46,7 @@ static const _COMMNG com_nc = { void commng_initialize(void) { - cmmidi_initailize(); + cmvermouth_initialize(); } COMMNG commng_create(UINT device) { @@ -53,7 +55,12 @@ COMMNG commng_create(UINT device) { ret = NULL; if (device == COMCREATE_MPU98II) { - ret = cmmidi_create(); + ret = cmvermouth_create(); + } + else if (device == COMCREATE_PRINTER) { + if (np2oscfg.jastsnd) { + ret = cmjasts_create(); + } } if (ret == NULL) { ret = (COMMNG)&com_nc;