changeset 259:4df54600633a

Add support for "HVSC_BASE" environment variable as used by STILView by LaLa & Leandro Nini etc.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Jan 2020 21:48:32 +0200
parents 8d914417227d
children 4a3e8960b3a9
files sidinfo.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sidinfo.c	Sun Jan 05 21:46:47 2020 +0200
+++ b/sidinfo.c	Sun Jan 05 21:48:32 2020 +0200
@@ -1207,6 +1207,9 @@
     char *setLang = th_strdup(getenv("LANG"));
     th_ioctx *inFile = NULL;
 
+    // Get HVSC_BASE env variable if it is set
+    th_pstr_cpy(&setHVSCPath, getenv("HVSC_BASE"));
+
     // Initialize
     th_init("SIDInfo", "PSID/RSID information displayer", "0.8.0",
         "By Matti 'ccr' Hamalainen (C) Copyright 2014-2020 TNSP",