mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 20:21:38 +00:00
.gdbinit:
add -nosound again cl_main.c: clean up function headers
This commit is contained in:
parent
054f659078
commit
eb8c267925
2 changed files with 56 additions and 115 deletions
|
@ -1 +1 @@
|
||||||
set args -nocdaudio +setrom _windowed_mouse 0 +set gl_sky_clip 1 +set show_fps 1
|
set args -nosound -nocdaudio +setrom _windowed_mouse 0 +set gl_sky_clip 1 +set show_fps 1
|
||||||
|
|
|
@ -208,9 +208,7 @@ char soundlist_name[] = "soundlist %i %i";
|
||||||
cvar_t *confirm_quit;
|
cvar_t *confirm_quit;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==================
|
|
||||||
CL_Quit_f
|
CL_Quit_f
|
||||||
==================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Quit_f (void)
|
CL_Quit_f (void)
|
||||||
|
@ -224,9 +222,7 @@ CL_Quit_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=======================
|
|
||||||
CL_Version_f
|
CL_Version_f
|
||||||
======================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Version_f (void)
|
CL_Version_f (void)
|
||||||
|
@ -237,11 +233,9 @@ CL_Version_f (void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=======================
|
|
||||||
CL_SendConnectPacket
|
CL_SendConnectPacket
|
||||||
|
|
||||||
called by CL_Connect_f and CL_CheckResend
|
called by CL_Connect_f and CL_CheckResend
|
||||||
======================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_SendConnectPacket (void)
|
CL_SendConnectPacket (void)
|
||||||
|
@ -294,12 +288,9 @@ CL_SendConnectPacket (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
|
||||||
CL_CheckForResend
|
CL_CheckForResend
|
||||||
|
|
||||||
Resend a connect message if the last one has timed out
|
Resend a connect message if the last one has timed out
|
||||||
|
|
||||||
=================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_CheckForResend (void)
|
CL_CheckForResend (void)
|
||||||
|
@ -348,10 +339,7 @@ CL_BeginServerConnect (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
|
||||||
CL_Connect_f
|
CL_Connect_f
|
||||||
|
|
||||||
================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Connect_f (void)
|
CL_Connect_f (void)
|
||||||
|
@ -373,12 +361,10 @@ CL_Connect_f (void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=====================
|
|
||||||
CL_Rcon_f
|
CL_Rcon_f
|
||||||
|
|
||||||
Send the rest of the command line over as
|
Send the rest of the command line over as
|
||||||
an unconnected command.
|
an unconnected command.
|
||||||
=====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Rcon_f (void)
|
CL_Rcon_f (void)
|
||||||
|
@ -417,10 +403,7 @@ CL_Rcon_f (void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=====================
|
|
||||||
CL_ClearState
|
CL_ClearState
|
||||||
|
|
||||||
=====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_ClearState (void)
|
CL_ClearState (void)
|
||||||
|
@ -458,12 +441,10 @@ CL_ClearState (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=====================
|
|
||||||
CL_Disconnect
|
CL_Disconnect
|
||||||
|
|
||||||
Sends a disconnect message to the server
|
Sends a disconnect message to the server
|
||||||
This is also called on Host_Error, so it shouldn't cause any errors
|
This is also called on Host_Error, so it shouldn't cause any errors
|
||||||
=====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Disconnect (void)
|
CL_Disconnect (void)
|
||||||
|
@ -514,13 +495,11 @@ CL_Disconnect_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
====================
|
|
||||||
CL_User_f
|
CL_User_f
|
||||||
|
|
||||||
user <name or userid>
|
user <name or userid>
|
||||||
|
|
||||||
Dump userdata / masterdata for a user
|
Dump userdata / masterdata for a user
|
||||||
====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_User_f (void)
|
CL_User_f (void)
|
||||||
|
@ -548,11 +527,9 @@ CL_User_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
====================
|
|
||||||
CL_Users_f
|
CL_Users_f
|
||||||
|
|
||||||
Dump userids for all current players
|
Dump userids for all current players
|
||||||
====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Users_f (void)
|
CL_Users_f (void)
|
||||||
|
@ -575,11 +552,9 @@ CL_Users_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==================
|
|
||||||
CL_FullServerinfo_f
|
CL_FullServerinfo_f
|
||||||
|
|
||||||
Sent by server when serverinfo changes
|
Sent by server when serverinfo changes
|
||||||
==================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_FullServerinfo_f (void)
|
CL_FullServerinfo_f (void)
|
||||||
|
@ -669,11 +644,9 @@ CL_RemoveQFInfoKeys (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==================
|
|
||||||
CL_FullInfo_f
|
CL_FullInfo_f
|
||||||
|
|
||||||
Allow clients to change userinfo
|
Allow clients to change userinfo
|
||||||
==================
|
|
||||||
Casey was here :)
|
Casey was here :)
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
@ -720,11 +693,9 @@ CL_FullInfo_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==================
|
|
||||||
CL_SetInfo_f
|
CL_SetInfo_f
|
||||||
|
|
||||||
Allow clients to change userinfo
|
Allow clients to change userinfo
|
||||||
==================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_SetInfo_f (void)
|
CL_SetInfo_f (void)
|
||||||
|
@ -747,13 +718,11 @@ CL_SetInfo_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
====================
|
|
||||||
CL_Packet_f
|
CL_Packet_f
|
||||||
|
|
||||||
packet <destination> <contents>
|
packet <destination> <contents>
|
||||||
|
|
||||||
Contents allows \n escape character
|
Contents allows \n escape character
|
||||||
====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Packet_f (void)
|
CL_Packet_f (void)
|
||||||
|
@ -792,11 +761,9 @@ CL_Packet_f (void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=====================
|
|
||||||
CL_NextDemo
|
CL_NextDemo
|
||||||
|
|
||||||
Called to play the next demo in the demo loop
|
Called to play the next demo in the demo loop
|
||||||
=====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_NextDemo (void)
|
CL_NextDemo (void)
|
||||||
|
@ -822,12 +789,10 @@ CL_NextDemo (void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
|
||||||
CL_Changing_f
|
CL_Changing_f
|
||||||
|
|
||||||
Just sent as a hint to the client that they should
|
Just sent as a hint to the client that they should
|
||||||
drop to full console
|
drop to full console
|
||||||
=================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Changing_f (void)
|
CL_Changing_f (void)
|
||||||
|
@ -844,11 +809,9 @@ CL_Changing_f (void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
|
||||||
CL_Reconnect_f
|
CL_Reconnect_f
|
||||||
|
|
||||||
The server is changing levels
|
The server is changing levels
|
||||||
=================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Reconnect_f (void)
|
CL_Reconnect_f (void)
|
||||||
|
@ -876,11 +839,9 @@ CL_Reconnect_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
|
||||||
CL_ConnectionlessPacket
|
CL_ConnectionlessPacket
|
||||||
|
|
||||||
Responses to broadcasts, etc
|
Responses to broadcasts, etc
|
||||||
=================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_ConnectionlessPacket (void)
|
CL_ConnectionlessPacket (void)
|
||||||
|
@ -1045,9 +1006,7 @@ CL_PingPacket (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
|
||||||
CL_ReadPackets
|
CL_ReadPackets
|
||||||
=================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_ReadPackets (void)
|
CL_ReadPackets (void)
|
||||||
|
@ -1106,9 +1065,7 @@ CL_ReadPackets (void)
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=====================
|
|
||||||
CL_Download_f
|
CL_Download_f
|
||||||
=====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Download_f (void)
|
CL_Download_f (void)
|
||||||
|
@ -1143,9 +1100,7 @@ CL_Download_f (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
|
||||||
CL_Init
|
CL_Init
|
||||||
=================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
CL_Init (void)
|
CL_Init (void)
|
||||||
|
@ -1330,11 +1285,9 @@ CL_Init_Cvars (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
|
||||||
Host_EndGame
|
Host_EndGame
|
||||||
|
|
||||||
Call this to drop to a console without exiting the qwcl
|
Call this to drop to a console without exiting the qwcl
|
||||||
================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Host_EndGame (char *message, ...)
|
Host_EndGame (char *message, ...)
|
||||||
|
@ -1355,11 +1308,9 @@ Host_EndGame (char *message, ...)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
|
||||||
Host_Error
|
Host_Error
|
||||||
|
|
||||||
This shuts down the client and exits qwcl
|
This shuts down the client and exits qwcl
|
||||||
================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Host_Error (char *error, ...)
|
Host_Error (char *error, ...)
|
||||||
|
@ -1388,11 +1339,9 @@ Host_Error (char *error, ...)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
|
||||||
Host_WriteConfiguration
|
Host_WriteConfiguration
|
||||||
|
|
||||||
Writes key bindings and archived cvars to config.cfg
|
Writes key bindings and archived cvars to config.cfg
|
||||||
===============
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Host_WriteConfiguration (void)
|
Host_WriteConfiguration (void)
|
||||||
|
@ -1421,11 +1370,9 @@ Host_WriteConfiguration (void)
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/*
|
/*
|
||||||
==================
|
|
||||||
Host_SimulationTime
|
Host_SimulationTime
|
||||||
|
|
||||||
This determines if enough time has passed to run a simulation frame
|
This determines if enough time has passed to run a simulation frame
|
||||||
==================
|
|
||||||
*/
|
*/
|
||||||
qboolean
|
qboolean
|
||||||
Host_SimulationTime (float time)
|
Host_SimulationTime (float time)
|
||||||
|
@ -1448,11 +1395,9 @@ Host_SimulationTime (float time)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==================
|
|
||||||
Host_Frame
|
Host_Frame
|
||||||
|
|
||||||
Runs all active servers
|
Runs all active servers
|
||||||
==================
|
|
||||||
*/
|
*/
|
||||||
int nopacketcount;
|
int nopacketcount;
|
||||||
void
|
void
|
||||||
|
@ -1574,9 +1519,7 @@ check_quakerc (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
====================
|
|
||||||
Host_Init
|
Host_Init
|
||||||
====================
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Host_Init (void)
|
Host_Init (void)
|
||||||
|
@ -1716,12 +1659,10 @@ Host_Init (void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
|
||||||
Host_Shutdown
|
Host_Shutdown
|
||||||
|
|
||||||
FIXME: this is a callback from Sys_Quit and Sys_Error. It would be better
|
FIXME: this is a callback from Sys_Quit and Sys_Error. It would be better
|
||||||
to run quit through here before the final handoff to the sys code.
|
to run quit through here before the final handoff to the sys code.
|
||||||
===============
|
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
Host_Shutdown (void)
|
Host_Shutdown (void)
|
||||||
|
|
Loading…
Reference in a new issue