--- np2/sound/vermouth/midimod.c 2005/03/18 09:23:11 1.6 +++ np2/sound/vermouth/midimod.c 2005/03/29 06:50:38 1.7 @@ -67,6 +67,21 @@ 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) { int ret; @@ -372,7 +387,7 @@ BRESULT cfgfile_load(MIDIMOD mod, const switch(cfg) { case CFG_DIR: for (i=1; i