//===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======// // // Purpose: Defines a group of app systems that all have the same lifetime // that need to be connected/initialized, etc. in a well-defined order // // $Revision: $ // $NoKeywords: $ //===========================================================================// #include "core/stdafx.h" #include "appframework/IAppSystemGroup.h" //----------------------------------------------------------------------------- // Purpose: Initialize plugin system //----------------------------------------------------------------------------- void CAppSystemGroup::StaticDestroy(CAppSystemGroup* pModAppSystemGroup) { CAppSystemGroup_Destroy(pModAppSystemGroup); } //----------------------------------------------------------------------------- // Returns the stage at which the app system group ran into an error //----------------------------------------------------------------------------- CAppSystemGroup::AppSystemGroupStage_t CAppSystemGroup::GetCurrentStage() const { return m_nCurrentStage; } void VAppSystemGroup::Attach(void) const { DetourAttach(&CAppSystemGroup_Destroy, &CAppSystemGroup::StaticDestroy); } void VAppSystemGroup::Detach(void) const { DetourDetach(&CAppSystemGroup_Destroy, &CAppSystemGroup::StaticDestroy); }