From e6ed15c0661489d1ea24e2e98f01d4e837fd3749 Mon Sep 17 00:00:00 2001 From: Sryder13 Date: Wed, 25 Oct 2017 20:38:43 +0100 Subject: [PATCH] Separate music from sound.kart so it can be added properly --- src/d_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/d_main.c b/src/d_main.c index 2ac28b329..9cf7467c3 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -877,6 +877,14 @@ static void IdentifyVersion(void) D_AddFile(musicpath); else if (ms == 0) I_Error("File %s has been modified with non-music lumps",musicfile); + + const char* kmusicfile = "music.kart"; + const char* kmusicpath = va(pandf,srb2waddir,kmusicfile); + ms = W_VerifyNMUSlumps(kmusicpath); + if (ms == 1) + D_AddFile(kmusicpath); + else if (ms == 0) + I_Error("File %s has been modified with non-music lumps",kmusicfile); } #endif }