cgvm_mempool = Mem_AllocPool("CGVM", 0, NULL);
}
+void CL_CGVM_Shutdown(void)
+{
+ Mem_FreePool (&cgvm_mempool);
+}
+
void CL_CGVM_Clear(void)
{
Mem_EmptyPool(cgvm_mempool);
#define CGAMEVM_H
void CL_CGVM_Init(void);
+void CL_CGVM_Shutdown(void);
void CL_CGVM_Clear(void);
void CL_CGVM_Frame(void);
void CL_CGVM_Start(void);
*/
void CL_Shutdown (void)
{
+ CL_CGVM_Shutdown();
+ CL_Particles_Shutdown();
+ CL_Parse_Shutdown();
+
+ SZ_Free (&cls.message);
+
Mem_FreePool (&cl_entities_mempool);
Mem_FreePool (&cl_refdef_mempool);
}
Cvar_SetValue("demo_nehahra", 1);
Cvar_RegisterVariable(&developer_networkentities);
}
+
+void CL_Parse_Shutdown(void)
+{
+ Mem_FreePool (&cl_scores_mempool);
+}
CL_Particles_Clear();
}
+void CL_Particles_Shutdown (void)
+{
+#ifdef WORKINGLQUAKE
+ // No clue what to do here...
+#else
+ Mem_FreePool (&cl_part_mempool);
+#endif
+}
+
// list of all 26 parameters:
// ptype - any of the pt_ enum values (pt_static, pt_blood, etc), see ptype_t near the top of this file
// porientation - PARTICLE_ enum values (PARTICLE_BILLBOARD, PARTICLE_SPARK, etc)
// cl_parse.c
//
void CL_Parse_Init(void);
+void CL_Parse_Shutdown(void);
void CL_ParseServerMessage(void);
void CL_Parse_DumpPacket(void);
void CL_Particles_Clear(void);
void CL_Particles_Init(void);
+void CL_Particles_Shutdown(void);
void CL_ParseParticleEffect (void);
void CL_RunParticleEffect (vec3_t org, vec3_t dir, int color, int count);
SZ_Alloc (&cmd_text, 32768, "command buffer"); // space for commands and script files
}
+/*
+============
+Cbuf_Shutdown
+============
+*/
+void Cbuf_Shutdown (void)
+{
+ SZ_Free (&cmd_text);
+}
/*
============
void Cbuf_Init (void);
// allocates an initial text buffer that will grow as needed
+void Cbuf_Shutdown (void);
+
void Cbuf_AddText (const char *text);
// as new commands are generated from the console or keybindings,
// the text is added to the end of the command buffer.
COM_CheckRegistered ();
}
+extern void FS_Shutdown (void);
+
+/*
+================
+COM_Shutdown
+================
+*/
+void COM_Shutdown (void)
+{
+ FS_Shutdown ();
+}
/*
============
int COM_CheckParm (const char *parm);
void COM_Init (void);
+void COM_Shutdown (void);
void COM_InitArgv (void);
void COM_InitGameType (void);
unlink (va("%s/qconsole.log", fs_gamedir));
}
+/*
+================
+FS_Shutdown
+================
+*/
+void FS_Shutdown (void)
+{
+ Mem_FreePool (&pak_mempool);
+ Mem_FreePool (&fs_mempool);
+}
/*
====================
CDAudio_Shutdown ();
S_Terminate ();
NetConn_Shutdown ();
+ PR_Shutdown ();
+ COM_Shutdown ();
+ Cbuf_Shutdown ();
if (cls.state != ca_dedicated)
{
CL_Shutdown();
Sys_Shutdown();
Log_Close ();
+ Memory_Shutdown();
}
{
// reset key_dest
key_dest = key_game;
+
+ Mem_FreePool (&menu_mempool);
}
void M_Restart(void)
PR_Search_Init();
}
+void PR_Cmd_Shutdown(void)
+{
+ Mem_FreePool (&pr_strings_mempool);
+}
+
void PR_Cmd_Reset(void)
{
Mem_EmptyPool(pr_strings_mempool);
PR_Cmd_Init();
}
+/*
+===============
+PR_Shutdown
+===============
+*/
+extern void PR_Cmd_Shutdown(void);
+void PR_Shutdown (void)
+{
+ PR_Cmd_Shutdown();
+
+ Mem_FreePool(&edictstring_mempool);
+ Mem_FreePool(&progs_mempool);
+}
+
// LordHavoc: turned EDICT_NUM into a #define for speed reasons
edict_t *EDICT_NUM_ERROR(int n, char *filename, int fileline)
{
//============================================================================
void PR_Init (void);
+void PR_Shutdown (void);
void PR_ExecuteProgram (func_t fnum, const char *errormessage);
void PR_LoadProgs (const char *progsname);
poolchain = NULL;
}
+void Memory_Shutdown (void)
+{
+// Mem_FreePool (&zonemempool);
+// Mem_FreePool (&tempmempool);
+}
+
void Memory_Init_Commands (void)
{
Cmd_AddCommand ("memstats", MemStats_f);
mempool_t *tempmempool;
void Memory_Init (void);
+void Memory_Shutdown (void);
void Memory_Init_Commands (void);
extern mempool_t *zonemempool;