- minimum_memory = MINIMUM_MEMORY_LEVELPAK;
-
- if (COM_CheckParm ("-minmemory"))
- host_parms.memsize = minimum_memory;
-
- if (host_parms.memsize < minimum_memory)
- Sys_Error ("Only %4.1f megs of memory available, can't execute game", host_parms.memsize / (float)0x100000);
- */
-
- com_argc = host_parms.argc;
- com_argv = host_parms.argv;
-
- Memory_Init (host_parms.membase, host_parms.memsize);
- Cbuf_Init ();
- Cmd_Init ();
- V_Init ();
- Chase_Init ();
- Host_InitVCR ();
- COM_Init (host_parms.basedir);
- Host_InitLocal ();
- W_LoadWadFile ("gfx.wad");
- Key_Init ();
- Con_Init ();
- M_Init ();
- PR_Init ();
- Mod_Init ();
- NET_Init ();
- SV_Init ();
-
- Con_Printf ("Exe: "__TIME__" "__DATE__"\n");
- Con_Printf ("%4.1f megabyte heap\n",host_parms.memsize/(1024*1024.0));
-
- R_InitTextures (); // needed even for dedicated servers
-
- if (cls.state != ca_dedicated)
- {
- Palette_Init("gfx/palette.lmp");