shithub: choc

Download patch

ref: 3c78b254a3c000e58ec93f07e7178b7246fa0e70
parent: 9943fcfd70b75bf5182dd3a0b7b7a8b7ce5cd2e0
author: Turo Lamminen <[email protected]>
date: Tue Jul 12 16:48:51 EDT 2022

Move music_pack_path variable earlier

It's needed even when SDL2_mixer is disabled

--- a/src/i_musicpack.c
+++ b/src/i_musicpack.c
@@ -44,6 +44,10 @@
 #include "w_wad.h"
 #include "z_zone.h"
 
+
+char *music_pack_path = "";
+
+
 #define MID_HEADER_MAGIC "MThd"
 #define MUS_HEADER_MAGIC "MUS\x1a"
 
@@ -99,7 +103,6 @@
 
 static boolean sdl_was_initialized = false;
 
-char *music_pack_path = "";
 
 // If true, we are playing a substitute digital track rather than in-WAD
 // MIDI/MUS track, and file_metadata contains loop metadata.