--- np2/macos9/commng.cpp 2003/10/23 07:20:43 1.1 +++ np2/macos9/commng.cpp 2004/01/07 08:33:00 1.4 @@ -1,6 +1,8 @@ #include "compiler.h" +#include "np2.h" #include "commng.h" -#include "cmmidi.h" +#include "cmver.h" +#include "cmjasts.h" // ---- non connect @@ -25,7 +27,7 @@ static BYTE ncgetstat(COMMNG self) { return(0xf0); } -static UINT ncmsg(COMMNG self, UINT msg, long param) { +static long ncmsg(COMMNG self, UINT msg, long param) { (void)self; (void)msg; @@ -34,8 +36,6 @@ static UINT ncmsg(COMMNG self, UINT msg, } static void ncrelease(COMMNG self) { - - (void)self; } static const _COMMNG com_nc = { @@ -44,13 +44,23 @@ static const _COMMNG com_nc = { // ---- +void commng_initialize(void) { + + cmvermouth_initialize(); +} + COMMNG commng_create(UINT device) { COMMNG ret; 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;