Scan /usr/share/drmr/drumkits and ~/.drmr/drumkits for kits. Don't warn if a dir to scan doesn't exist
This commit is contained in:
parent
11d60f0e5b
commit
b93495a770
@ -30,7 +30,9 @@
|
||||
static char* default_drumkit_locations[] = {
|
||||
"/usr/share/hydrogen/data/drumkits/",
|
||||
"/usr/local/share/hydrogen/data/drumkits/",
|
||||
"/usr/share/drmr/drumkits/",
|
||||
"~/.hydrogen/data/drumkits/",
|
||||
"~/.drmr/drumkits/",
|
||||
NULL
|
||||
};
|
||||
|
||||
@ -273,7 +275,7 @@ kits* scan_kits() {
|
||||
}
|
||||
(void) closedir (dp);
|
||||
}
|
||||
else
|
||||
else if (errno != ENOENT)
|
||||
fprintf(stderr,"Couldn't open %s: %s\n",cur_path,strerror(errno));
|
||||
cur_path = default_drumkit_locations[cp++];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user