本文整理汇总了C++中IN_Shutdown函数的典型用法代码示例。如果您正苦于以下问题:C++ IN_Shutdown函数的具体用法?C++ IN_Shutdown怎么用?C++ IN_Shutdown使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IN_Shutdown函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Host_Shutdown
/*
===============
Host_Shutdown
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.
===============
*/
void
Host_Shutdown(void)
{
static qboolean isdown = false;
if (isdown) {
printf("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration();
CDAudio_Shutdown();
NET_Shutdown();
BGM_Shutdown();
S_Shutdown();
IN_Shutdown();
if (cls.state != ca_dedicated) {
VID_Shutdown();
}
}
示例2: Sys_Error
/*
=============
Sys_Error
Show the early console as an error dialog
=============
*/
void QDECL Sys_Error( const char *error, ... ) {
va_list argptr;
char text[4096];
MSG msg;
va_start (argptr, error);
vsprintf (text, error, argptr);
va_end (argptr);
Conbuf_AppendText( text );
Conbuf_AppendText( "\n" );
Sys_SetErrorText( text );
Sys_ShowConsole( 1, qtrue );
timeEndPeriod( 1 );
IN_Shutdown();
// wait for the user to quit
while ( 1 ) {
if (!GetMessage (&msg, NULL, 0, 0))
Com_Quit_f ();
TranslateMessage (&msg);
DispatchMessage (&msg);
}
Sys_DestroyConsole();
Com_ShutdownZoneMemory();
Com_ShutdownHunkMemory();
exit (1);
}
示例3: CL_Shutdown
void
CL_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf("recursive shutdown\n");
return;
}
isdown = true;
CL_WriteConfiguration();
Key_WriteConsoleHistory();
#ifdef CDA
CDAudio_Shutdown();
#endif
#ifdef OGG
OGG_Stop();
#endif
S_Shutdown();
IN_Shutdown();
VID_Shutdown();
}
示例4: CL_Shutdown
/*
===============
CL_Shutdown
===============
*/
void CL_Shutdown( void )
{
MsgDev( D_INFO, "CL_Shutdown()\n" );
if( cls.initialized && !host.crashed )
{
Host_WriteOpenGLConfig ();
Host_WriteVideoConfig ();
}
IN_TouchShutdown();
CL_CloseDemoHeader();
IN_Shutdown ();
Mobile_Destroy();
SCR_Shutdown ();
if( cls.initialized )
{
CL_UnloadProgs ();
cls.initialized = false;
}
FS_Delete( "demoheader.tmp" ); // remove tmp file
SCR_FreeCinematic (); // release AVI's *after* client.dll because custom renderer may use them
S_Shutdown ();
R_Shutdown ();
}
示例5: Host_Shutdown
void Host_Shutdown(void) {
static bool isdown = false;
if (isdown) {
printf("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration();
CDAudio_Shutdown();
NET_Shutdown();
S_Shutdown();
IN_Shutdown();
NN_deinit();
TextureManager::clearAllTextures();
Alias::shutdown();
Cmd::shutdown();
CVar::shutdown();
MemoryObj::Flush(MemoryObj::ZONE);
if (cls.state != ca_dedicated) {
VID_Shutdown();
}
if (con_debuglog) {
Con_CloseDebugLog();
}
}
示例6: PicturePause
void PicturePause (void)
{
id0_int_t y;
id0_unsigned_t source;
source = displayofs+panadjust;
// VW_ColorBorder (15);
VW_SetLineWidth (40);
VW_SetScreen (0,0);
if (source<0x10000l-200*64)
{
//
// copy top line first
//
for (y=0;y<200;y++)
VW_ScreenToScreen (source+y*64,y*40,40,1);
}
else
{
//
// copy bottom line first
//
for (y=199;y>=0;y--)
VW_ScreenToScreen (source+y*64,y*40,40,1);
}
IN_Shutdown ();
VW_WaitVBL(70);
BE_ST_BiosScanCode(0);
VW_WaitVBL(70);
Quit (NULL);
}
示例7: GLimp_Shutdown
/*
===============
GLimp_Shutdown
===============
*/
void GLimp_Shutdown( void )
{
IN_Shutdown();
SDL_QuitSubSystem( SDL_INIT_VIDEO );
screen = NULL;
}
示例8: CL_Shutdown
void
CL_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf("recursive shutdown\n");
return;
}
isdown = true;
#ifdef USE_CURL
CL_HTTP_Cleanup(true);
#endif
CL_WriteConfiguration();
Key_WriteConsoleHistory();
OGG_Stop();
S_Shutdown();
IN_Shutdown();
VID_Shutdown();
}
示例9: ShowSystem
//-------------------------------------------------------------------------
// ShowSystem()
//-------------------------------------------------------------------------
void ShowSystem()
{
char avail[2][8]={"None","Present"};
MM_Startup ();
CA_Startup ();
IN_Startup ();
PM_Startup ();
SD_Startup ();
fprint(show_text1);
fprint(show_text2);
fprint(show_text3);
fprint(show_text5);
printf(" Mouse: %s\n",avail[MousePresent]);
printf(" Joystick: %s\n",avail[JoysPresent[0]||JoysPresent[1]]);
printf(" AdLib: %s\n",avail[AdLibPresent&&!SoundBlasterPresent]);
printf("Sound Blaster: %s\n",avail[SoundBlasterPresent]);
printf(" Sound Source: %s\n\n",avail[SoundSourcePresent]);
fprint(show_text2);
SD_Shutdown ();
PM_Shutdown ();
IN_Shutdown ();
CA_Shutdown ();
MM_Shutdown ();
}
示例10: Host_Shutdown
/*
===============
Host_Shutdown
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.
===============
*/
void Host_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf ("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration ();
#ifdef PROQUAKE_EXTENSION
IPLog_WriteLog (); // JPG 1.05 - ip loggging
#endif
if (con_initialized)
History_Shutdown ();
CDAudio_Shutdown ();
NET_Shutdown ();
S_Shutdown();
IN_Shutdown ();
if (cls.state != ca_dedicated)
{
VID_Shutdown();
}
}
示例11: Host_Shutdown
/*
===============
Host_Shutdown
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.
===============
*/
void Host_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf ("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration ();
// jkrige - fmod sound system (music)
//CDAudio_Shutdown ();
// jkrige - fmod sound system (music)
NET_Shutdown ();
// jkrige - fmod sound system (system)
FMOD_Shutdown();
// jkrige - fmod sound system (system)
S_Shutdown();
IN_Shutdown ();
if (cls.state != ca_dedicated)
{
VID_Shutdown();
}
}
示例12: Sys_Quit
void Sys_Quit (void) {
IN_Shutdown();
Com_ShutdownZoneMemory();
Com_ShutdownHunkMemory();
Sys_Exit(0);
}
示例13: GLimp_Shutdown
/*
===============
GLimp_Shutdown
===============
*/
void GLimp_Shutdown( void )
{
IN_Shutdown();
SDL_QuitSubSystem( SDL_INIT_VIDEO );
memset( &glConfig, 0, sizeof( glConfig ) );
memset( &glState, 0, sizeof( glState ) );
}
示例14: Sys_Quit
/*
==============
Sys_Quit
==============
*/
void Sys_Quit( void ) {
// timeEndPeriod( 1 );
IN_Shutdown();
Sys_DestroyConsole();
Q3CE_CloseAll();
exit (0);
}
示例15: ShutdownId
void ShutdownId (void)
{
US_Shutdown ();
SD_Shutdown ();
PM_Shutdown ();
IN_Shutdown ();
VW_Shutdown ();
CA_Shutdown ();
}