* Allow the user to specify where to keep the database in the config file.

This commit is contained in:
Justin Maggard
2009-11-19 03:22:35 +00:00
parent 808fc6f459
commit 902b2105df
10 changed files with 50 additions and 19 deletions

View File

@ -37,7 +37,7 @@
int
art_cache_exists(const char * orig_path, char ** cache_file)
{
asprintf(cache_file, DB_PATH "/art_cache%s", orig_path);
asprintf(cache_file, "%s/art_cache%s", db_path, orig_path);
strcpy(strchr(*cache_file, '\0')-4, ".jpg");
return (!access(*cache_file, F_OK));