music: Minor tweaks to substitute music code.
Use appropriate directory separator for OS when generating config file paths. When generating config files, include a header line that indicates what is being assigned.
This commit is contained in:
parent
884dc5de9a
commit
54fde7960b
1 changed files with 2 additions and 1 deletions
|
|
@ -321,7 +321,7 @@ static void LoadSubstituteConfigs(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
musicdir = M_StringJoin(configdir, "music/", NULL);
|
||||
musicdir = M_StringJoin(configdir, "music", DIR_SEPARATOR_S, NULL);
|
||||
}
|
||||
|
||||
// Load all music packs. We always load all music substitution packs for
|
||||
|
|
@ -365,6 +365,7 @@ static void DumpSubstituteConfig(char *filename)
|
|||
}
|
||||
|
||||
fprintf(fs, "# Example %s substitute MIDI file.\n\n", PACKAGE_NAME);
|
||||
fprintf(fs, "# SHA1 hash = filename\n");
|
||||
|
||||
for (lumpnum = 0; lumpnum < numlumps; ++lumpnum)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue