| version 1.6, 2005/03/18 09:23:11 | version 1.7, 2005/03/29 06:50:38 | 
| Line 67  static void pathadd(MIDIMOD mod, const O | Line 67  static void pathadd(MIDIMOD mod, const O | 
 | } | } | 
 | } | } | 
 |  |  | 
 |  | static void pathaddex(MIDIMOD mod, const OEMCHAR *path) { | 
 |  |  | 
 |  | OEMCHAR _path[MAX_PATH]; | 
 |  |  | 
 |  | if (milstr_memcmp(path, OEMTEXT("${basedir}"))) { | 
 |  | pathadd(mod, path); | 
 |  | } | 
 |  | else { | 
 |  | file_cpyname(_path, file_getcd(str_null), NELEMENTS(_path)); | 
 |  | file_cutseparator(_path); | 
 |  | file_catname(_path, path + 10, NELEMENTS(_path)); | 
 |  | pathadd(mod, _path); | 
 |  | } | 
 |  | } | 
 |  |  | 
 | static int cfggetarg(OEMCHAR *str, OEMCHAR *arg[], int maxarg) { | static int cfggetarg(OEMCHAR *str, OEMCHAR *arg[], int maxarg) { | 
 |  |  | 
 | int             ret; | int             ret; | 
| Line 372  BRESULT cfgfile_load(MIDIMOD mod, const | Line 387  BRESULT cfgfile_load(MIDIMOD mod, const | 
 | switch(cfg) { | switch(cfg) { | 
 | case CFG_DIR: | case CFG_DIR: | 
 | for (i=1; i<argc; i++) { | for (i=1; i<argc; i++) { | 
| pathadd(mod, argv[i]); | pathaddex(mod, argv[i]); | 
 | } | } | 
 | break; | break; | 
 |  |  |