From 55b04e96225d325162e02b731729e541b6affd46 Mon Sep 17 00:00:00 2001 From: sezero Date: Tue, 15 Feb 2011 21:30:32 +0000 Subject: [PATCH] bgmusic.c: renamed -nomusic command line switch to -noextmusic. minor update. updated documentation for the command line option name change. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@416 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/bgmusic.c | 4 +++- quakespasm/README.html | 2 +- quakespasm/README.sgml | 2 +- quakespasm/README.txt | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/quakespasm/Quake/bgmusic.c b/quakespasm/Quake/bgmusic.c index 4b333a10..6a01fec4 100644 --- a/quakespasm/Quake/bgmusic.c +++ b/quakespasm/Quake/bgmusic.c @@ -128,7 +128,7 @@ qboolean BGM_Init (void) Cmd_AddCommand("music_loop", BGM_Loop_f); Cmd_AddCommand("music_stop", BGM_Stop_f); - if (COM_CheckParm("-nomusic") != 0) + if (COM_CheckParm("-noextmusic") != 0) no_extmusic = true; bgmloop = true; @@ -302,6 +302,8 @@ void BGM_PlayCDtrack (byte track, qboolean looping) { if (! handler->is_available) goto _next; + if (! CDRIPTYPE(handler->type)) + goto _next; q_snprintf(tmp, sizeof(tmp), "%s/track%02d%s", MUSIC_DIRNAME, (int)track, handler->ext); if (! COM_FileExists(tmp, &path_id)) diff --git a/quakespasm/README.html b/quakespasm/README.html index 60bd06db..9fb2b7b5 100644 --- a/quakespasm/README.html +++ b/quakespasm/README.html @@ -90,7 +90,7 @@ It includes 64bit CPU cupport, a new sound driver, several networking fixes, and

diff --git a/quakespasm/README.sgml b/quakespasm/README.sgml index cf87465f..477bbe4e 100644 --- a/quakespasm/README.sgml +++ b/quakespasm/README.sgml @@ -48,7 +48,7 @@ Since version 0.85.4, Quakespasm can play back external MP3, OGG and Wave music Tracks should be named like "track02.ogg", "track03.ogg" ... (there is no track01) and placed into "Quake/id1/music". Unix users may need some extra libraries installed: libmad for MP3 and libogg and libvorbis for OGG. -Use the "-nomusic" option to disable this feature. +Use the "-noextmusic" option to disable this feature. diff --git a/quakespasm/README.txt b/quakespasm/README.txt index fa570070..0c2ec98b 100644 --- a/quakespasm/README.txt +++ b/quakespasm/README.txt @@ -86,7 +86,7 @@ o Unix users may need some extra libraries installed: libmad for MP3 and libogg and libvorbis for OGG. - o Use the "-nomusic" option to disable this feature. + o Use the "-noextmusic" option to disable this feature. 4. Compiling