mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix a thinko that prevented the cd command from being added
This commit is contained in:
parent
9c778bb539
commit
fcdc975bdd
1 changed files with 2 additions and 3 deletions
|
@ -91,10 +91,8 @@ CDAudio_Init (void)
|
||||||
if (!cdmodule) {
|
if (!cdmodule) {
|
||||||
Sys_Printf ("Loading of cd module: %s failed!\n", cd_plugin->string);
|
Sys_Printf ("Loading of cd module: %s failed!\n", cd_plugin->string);
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
|
||||||
cdmodule->functions->general->p_Init ();
|
|
||||||
return 0; // FIXME: Assumes success
|
|
||||||
}
|
}
|
||||||
|
cdmodule->functions->general->p_Init ();
|
||||||
Cmd_AddCommand (
|
Cmd_AddCommand (
|
||||||
"cd", CD_f, "Control the CD player.\n"
|
"cd", CD_f, "Control the CD player.\n"
|
||||||
"Commands:\n"
|
"Commands:\n"
|
||||||
|
@ -110,4 +108,5 @@ CDAudio_Init (void)
|
||||||
"play (track number) - Plays the specified track one time.\n"
|
"play (track number) - Plays the specified track one time.\n"
|
||||||
"stop - Stops the currently playing track.");
|
"stop - Stops the currently playing track.");
|
||||||
Sys_Printf ("CD Audio Initialized\n");
|
Sys_Printf ("CD Audio Initialized\n");
|
||||||
|
return 0; // FIXME: Assumes success
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue