From 8bc9b1865a8fd1a4314b05edc24ff5a1afe22a1c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 5 Apr 2026 06:00:17 +0500 Subject: [PATCH] engine: client: allow custom paths in cdaudio.txt --- engine/client/cl_game.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index 0aac21ba..914c79fa 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -188,7 +188,13 @@ static void CL_InitCDAudio( const char *filename ) while(( pfile = COM_ParseFile( pfile, token, sizeof( token ))) != NULL ) { if( !Q_stricmp( token, "blank" )) + { clgame.cdtracks[c][0] = '\0'; + } + else if( token[0] == '/' ) // allow custom path + { + Q_strncpy( clgame.cdtracks[c], &token[1], sizeof( clgame.cdtracks[c] )); + } else { Q_snprintf( clgame.cdtracks[c], sizeof( clgame.cdtracks[c] ),