diff options
author | Simon Howard | 2014-04-05 21:50:05 -0400 |
---|---|---|
committer | Simon Howard | 2014-04-05 21:50:05 -0400 |
commit | 54fde7960b40186a8ba0e5d7b156f4f149b6cfdc (patch) | |
tree | 575b0f5351a119ee6b721a8aa70c157042eedb07 | |
parent | 884dc5de9a2701529efcb151150b2625a409b767 (diff) | |
download | chocolate-doom-54fde7960b40186a8ba0e5d7b156f4f149b6cfdc.tar.gz chocolate-doom-54fde7960b40186a8ba0e5d7b156f4f149b6cfdc.tar.bz2 chocolate-doom-54fde7960b40186a8ba0e5d7b156f4f149b6cfdc.zip |
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.
-rw-r--r-- | src/i_sdlmusic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i_sdlmusic.c b/src/i_sdlmusic.c index 2549b39e..3985f6e4 100644 --- a/src/i_sdlmusic.c +++ b/src/i_sdlmusic.c @@ -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) { |