summaryrefslogtreecommitdiff
path: root/csid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'csid.cpp')
-rw-r--r--csid.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/csid.cpp b/csid.cpp
index 286ae6f1..4b250598 100644
--- a/csid.cpp
+++ b/csid.cpp
@@ -28,10 +28,10 @@
// #include "sidplay/sidendian.h"
#include "deadbeef.h"
-#include "conf.h"
extern "C" {
#include "md5/md5.h"
+#include "conf.h"
}
// forward decls
@@ -129,9 +129,14 @@ static sldb_t *sldb;
static void sldb_load()
{
fprintf (stderr, "sldb_load\n");
+ int conf_hvsc_enable = conf_get_int ("hvsc_enable", 0);
if (sldb_loaded || !conf_hvsc_enable) {
return;
}
+ const char *conf_hvsc_path = conf_get_str ("hvsc_path", NULL);
+ if (!conf_hvsc_path) {
+ return;
+ }
sldb_loaded = 1;
const char *fname = conf_hvsc_path;
FILE *fp = fopen (fname, "r");