# HG changeset patch # User Matti Hamalainen # Date 1545546321 -7200 # Node ID 90ff5dbee152b4f698d6582e87f4fbe9cb15869d # Parent ddadc2f3302a39c17f0f0f5938854b9789a9bd98 The HVSC path -H option now requires HVSC root directory, not HVSC/DOCUMENTS directory. diff -r ddadc2f3302a -r 90ff5dbee152 sidinfo.c --- a/sidinfo.c Fri Dec 21 14:27:02 2018 +0200 +++ b/sidinfo.c Sun Dec 23 08:25:21 2018 +0200 @@ -133,7 +133,7 @@ { 3, 'f', "fields", "Show only specified field(s)", OPT_ARGREQ }, { 4, 'x', "hex", "Use hexadecimal values", OPT_NONE }, { 7, 'F', "format", "Use given format string (see below)", OPT_ARGREQ }, - { 8, 'H', "hvsc", "Specify path to HVSC documents directory", OPT_ARGREQ }, + { 8, 'H', "hvsc", "Specify path to HVSC root directory", OPT_ARGREQ }, { 9, 'S', "sldb", "Specify Songlengths.(txt|md5) file (use -H if possible)", OPT_ARGREQ }, {12, 'R', "recurse", "Recurse into sub-directories", OPT_NONE }, }; @@ -1175,7 +1175,10 @@ char *siCheckHVSCFilePath(const char *filebase, const char *fext) { th_stat_data sdata; - char *npath = th_strdup_printf("%s%c%s%s", setHVSCPath, TH_DIR_SEPARATOR, filebase, fext); + char *npath = th_strdup_printf("%s%c%s%c%s%s", + setHVSCPath, TH_DIR_SEPARATOR, + "DOCUMENTS", TH_DIR_SEPARATOR, + filebase, fext); if (npath != NULL && th_stat_path(npath, &sdata) &&