static void SetUpTestCase() { TEST_Init(); cl_genericPool = Mem_CreatePool("Client: Generic"); cp_campaignPool = Mem_CreatePool("Client: Local (per game)"); cp_campaign = Cvar_Get("cp_campaign", "main"); cp_missiontest = Cvar_Get("cp_missiontest", "0"); vid_imagePool = Mem_CreatePool("Vid: Image system"); r_state.active_texunit = &r_state.texunits[0]; R_FontInit(); CL_InitLua(); UI_Init(); GAME_InitStartup(); OBJZERO(cls); Com_ParseScripts(false); Cmd_ExecuteString("game_setmode campaign"); Cmd_AddCommand("msgoptions_set", Cmd_Dummy_f); CL_SetClientState(ca_disconnected); cls.realtime = Sys_Milliseconds(); }
static void SetUpTestCase() { TEST_Init(); PTL_InitStartup(); vid_imagePool = Mem_CreatePool("Vid: Image system"); cl_genericPool = Mem_CreatePool("Client: Generic"); r_state.active_texunit = &r_state.texunits[0]; R_FontInit(); CL_InitLua(); UI_Init(); OBJZERO(cls); Com_ParseScripts(false); }
static void SetUpTestCase() { TEST_Init(); sv_genericPool = Mem_CreatePool("mapdef-test"); com_networkPool = Mem_CreatePool("Network"); vid_imagePool = Mem_CreatePool("Vid: Image system"); sv_dumpmapassembly = Cvar_Get("sv_dumpassembly", "0"); sv_public = Cvar_Get("sv_public", "0"); port = Cvar_Get("testport", "27909"); masterserver_url = Cvar_Get("masterserver_test", "http://localhost"); cl_genericPool = Mem_CreatePool("Client: Generic"); r_state.active_texunit = &r_state.texunits[0]; R_FontInit(); CL_InitLua(); UI_Init(); OBJZERO(cls); Com_ParseScripts(false); }