Diff for /np2/sound/vermouth/midimod.c between versions 1.9 and 1.10

version 1.9, 2006/12/16 09:43:24 version 1.10, 2006/12/16 12:11:07
Line 42  static const OEMCHAR file_timiditycfg[]  Line 42  static const OEMCHAR file_timiditycfg[] 
 static const OEMCHAR str_basedir[] = OEMTEXT("${basedir}");  static const OEMCHAR str_basedir[] = OEMTEXT("${basedir}");
   
   
 static void pathadd(MIDIMOD mod, const OEMCHAR *path) {  static void VERMOUTHCL pathadd(MIDIMOD mod, const OEMCHAR *path) {
   
         _PATHLIST       pl;          _PATHLIST       pl;
         PATHLIST        p;          PATHLIST        p;
Line 74  static void pathadd(MIDIMOD mod, const O Line 74  static void pathadd(MIDIMOD mod, const O
         }          }
 }  }
   
 static void pathaddex(MIDIMOD mod, const OEMCHAR *path) {  static void VERMOUTHCL pathaddex(MIDIMOD mod, const OEMCHAR *path) {
   
         OEMCHAR _path[MAX_PATH];          OEMCHAR _path[MAX_PATH];
   
Line 89  static void pathaddex(MIDIMOD mod, const Line 89  static void pathaddex(MIDIMOD mod, const
         }          }
 }  }
   
 static int cfggetarg(OEMCHAR *str, OEMCHAR *arg[], int maxarg) {  static int VERMOUTHCL cfggetarg(OEMCHAR *str, OEMCHAR *arg[], int maxarg) {
   
         int             ret;          int             ret;
         BOOL    quot;          BOOL    quot;
Line 141  cga_done: Line 141  cga_done:
         return(ret);          return(ret);
 }  }
   
 static OEMCHAR *seachr(const OEMCHAR *str, OEMCHAR sepa) {  static OEMCHAR *VERMOUTHCL seachr(const OEMCHAR *str, OEMCHAR sepa) {
   
         OEMCHAR c;          OEMCHAR c;
   
Line 163  enum { Line 163  enum {
         VAL_SIGN        = 2          VAL_SIGN        = 2
 };  };
   
 static BRESULT cfggetval(const OEMCHAR *str, int *val) {  static BRESULT VERMOUTHCL cfggetval(const OEMCHAR *str, int *val) {
   
         int             ret;          int             ret;
         int             flag;          int             flag;
Line 208  static BRESULT cfggetval(const OEMCHAR * Line 208  static BRESULT cfggetval(const OEMCHAR *
   
 // ----  // ----
   
 static void settone(MIDIMOD mod, int bank, int argc, OEMCHAR *argv[]) {  static void VERMOUTHCL settone(MIDIMOD mod, int bank, int argc,
                                                                                                                           OEMCHAR *argv[]) {
   
         int             val;          int             val;
         TONECFG tone;          TONECFG tone;
Line 332  static void settone(MIDIMOD mod, int ban Line 333  static void settone(MIDIMOD mod, int ban
   
 // ----  // ----
   
 BRESULT cfgfile_getfile(MIDIMOD mod, const OEMCHAR *filename,  BRESULT VERMOUTHCL midimod_getfile(MIDIMOD mod, const OEMCHAR *filename,
                                                                                                         OEMCHAR *path, int size) {                                                                                                          OEMCHAR *path, int size) {
   
         PATHLIST        p;          PATHLIST        p;
Line 361  fpgf_exit: Line 362  fpgf_exit:
         return(FAILURE);          return(FAILURE);
 }  }
   
 BRESULT cfgfile_load(MIDIMOD mod, const OEMCHAR *filename, int depth) {  static BRESULT VERMOUTHCL cfgfile_load(MIDIMOD mod, const OEMCHAR *filename,
                                                                                                                                   int depth) {
   
         TEXTFILEH       tfh;          TEXTFILEH       tfh;
         OEMCHAR         buf[1024];          OEMCHAR         buf[1024];
Line 375  BRESULT cfgfile_load(MIDIMOD mod, const  Line 377  BRESULT cfgfile_load(MIDIMOD mod, const 
         bank = -1;          bank = -1;
   
         if ((depth >= 16) ||          if ((depth >= 16) ||
                 (cfgfile_getfile(mod, filename, buf, NELEMENTS(buf)) != SUCCESS)) {                  (midimod_getfile(mod, filename, buf, NELEMENTS(buf)) != SUCCESS)) {
                 goto cfl_err;                  goto cfl_err;
         }          }
 //      TRACEOUT(("open: %s", buf));  //      TRACEOUT(("open: %s", buf));
Line 484  mmcre_err1: Line 486  mmcre_err1:
         return(NULL);          return(NULL);
 }  }
   
 void midimod_lock(MIDIMOD hdl) {  void VERMOUTHCL midimod_lock(MIDIMOD hdl) {
   
         hdl->lockcount++;          hdl->lockcount++;
 }  }
   
 void midimod_unlock(MIDIMOD hdl) {  void VERMOUTHCL midimod_unlock(MIDIMOD hdl) {
   
         UINT    r;          UINT    r;
         TONECFG bank;          TONECFG bank;
Line 525  VEXTERN void VEXPORT midimod_destroy(MID Line 527  VEXTERN void VEXPORT midimod_destroy(MID
         }          }
 }  }
   
   VEXTERN BRESULT VEXPORT midimod_cfgload(MIDIMOD hdl,
                                                                                                   const OEMCHAR *filename) {
   
           return(cfgfile_load(hdl, filename, 0));
   }
   
 VEXTERN void VEXPORT midimod_loadprogram(MIDIMOD hdl, UINT num) {  VEXTERN void VEXPORT midimod_loadprogram(MIDIMOD hdl, UINT num) {
   
         UINT    bank;          UINT    bank;

Removed from v.1.9  
changed lines
  Added in v.1.10


RetroPC.NET-CVS <cvs@retropc.net>