--- np2/statsave.c 2004/02/21 00:25:33 1.38 +++ np2/statsave.c 2004/07/01 11:42:54 1.42 @@ -10,6 +10,7 @@ #include "iocore.h" #include "gdc_sub.h" #include "cbuscore.h" +#include "ideio.h" #include "sasiio.h" #include "scsiio.h" #include "pc9861k.h" @@ -30,6 +31,7 @@ #include "keydisp.h" #include "hostdrv.h" #include "calendar.h" +#include "keystat.h" #if defined(MACOS) #define CRCONST str_cr @@ -705,6 +707,8 @@ static int flagload_gij(STFLAGH sfh, con // ---- FM +#if !defined(DISABLE_SOUND) + enum { FLAG_MG = 0x0001, FLAG_FM1A = 0x0002, @@ -904,7 +908,6 @@ static int flagload_fm(STFLAGH sfh, cons } if (saveflg & FLAG_CS4231) { ret |= statflag_read(sfh, &cs4231, sizeof(cs4231)); - cs4231.proc = cs4231dec[cs4231.reg.datafmt >> 4]; } // 復元。 これ移動すること! @@ -919,6 +922,7 @@ static int flagload_fm(STFLAGH sfh, cons (void)t; return(ret); } +#endif // ---- disk @@ -1226,9 +1230,11 @@ const SFENTRY *tblterm; ret |= flagsave_ext(&sffh->sfh, tbl); break; +#if !defined(DISABLE_SOUND) case STATFLAG_FM: ret |= flagsave_fm(&sffh->sfh, tbl); break; +#endif case STATFLAG_GIJ: ret |= flagsave_gij(&sffh->sfh, tbl); @@ -1296,7 +1302,9 @@ const SFENTRY *tblterm; case STATFLAG_EVT: case STATFLAG_EXT: case STATFLAG_GIJ: +#if !defined(DISABLE_SOUND) case STATFLAG_FM: +#endif #if defined(SUPPORT_HOSTDRV) case STATFLAG_HDRV: #endif @@ -1417,9 +1425,11 @@ const SFENTRY *tblterm; ret |= flagload_ext(&sffh->sfh, tbl); break; +#if !defined(DISABLE_SOUND) case STATFLAG_FM: ret |= flagload_fm(&sffh->sfh, tbl); break; +#endif case STATFLAG_GIJ: ret |= flagload_gij(&sffh->sfh, tbl);