From 93dd4d8bb169c744dbe5cd1f6152776e06a621bc Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 23 Aug 2010 10:31:00 +0000 Subject: [PATCH] cd command tweaks git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@284 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/cd_sdl.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Quake/cd_sdl.c b/Quake/cd_sdl.c index f7eb7b48..d5c84ac0 100644 --- a/Quake/cd_sdl.c +++ b/Quake/cd_sdl.c @@ -173,9 +173,9 @@ void CDAudio_Next(void) if (!playing) return; - // track = cd_handle->cur_track; - // Seems not implemented - track = playTrack; + // track = cd_handle->cur_track; + // Seems not implemented + track = playTrack; track++; if (track > cd_handle->numtracks) track = 1; @@ -193,10 +193,10 @@ void CDAudio_Prev(void) if (!playing) return; - track = playTrack; + track = playTrack; track--; - if (track == 0) + if (track == 0) track = cd_handle->numtracks; CDAudio_Play (track,playLooping); @@ -243,10 +243,10 @@ static void CD_f (void) if (Cmd_Argc() < 2) { - Con_Printf("commands:"); - Con_Printf("on, off, reset, remap, \n"); - Con_Printf("play, stop, loop, pause, resume\n"); - Con_Printf("eject, info\n"); + Con_Printf("commands:\n"); + Con_Printf(" on, off, reset, remap, \n"); + Con_Printf(" play, stop, next, prev, loop,\n"); + Con_Printf(" pause, resume, eject, info\n"); return; } @@ -379,6 +379,7 @@ static void CD_f (void) return; } + Con_Printf ("cd: no such command. Use \"cd\" for help.\n"); } static qboolean CD_GetVolume (void *unused)