コード例 #1
0
ファイル: IGame_Persistent.cpp プロジェクト: NeoAnomaly/xray
void IGame_Persistent::OnAppEnd		()
{
	Environment().unload				();
	OnGameEnd						();

#ifndef _EDITOR
	DEL_INSTANCE					(g_hud);
#endif    
}
コード例 #2
0
ファイル: IGame_Persistent.cpp プロジェクト: 2asoft/xray
void IGame_Persistent::Start		(LPCSTR op)
{
	string256						prev_type;
	strcpy_s							(prev_type,m_game_params.m_game_type);
	m_game_params.parse_cmd_line	(op);
	// change game type
	if ((0!=xr_strcmp(prev_type,m_game_params.m_game_type))) 
	{
		if (*m_game_params.m_game_type)
			OnGameStart					();
#ifndef _EDITOR
		if(g_hud)
			DEL_INSTANCE			(g_hud);
#endif            
	}
	else UpdateGameType();

	VERIFY							(ps_destroy.empty());
}