2023-05-10 00:05:38 +02:00
|
|
|
|
//===== Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ======//
|
2023-01-30 21:22:17 +01:00
|
|
|
|
//
|
|
|
|
|
// 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"
|
2023-05-10 00:05:38 +02:00
|
|
|
|
#include "appframework/IAppSystemGroup.h"
|
2023-01-30 21:22:17 +01:00
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
// Purpose: Initialize plugin system
|
|
|
|
|
//-----------------------------------------------------------------------------
|
2023-04-01 01:27:04 +02:00
|
|
|
|
void CAppSystemGroup::StaticDestroy(CAppSystemGroup* pModAppSystemGroup)
|
2023-01-30 21:22:17 +01:00
|
|
|
|
{
|
|
|
|
|
CAppSystemGroup_Destroy(pModAppSystemGroup);
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-01 01:07:20 +02:00
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
// Returns the stage at which the app system group ran into an error
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
CAppSystemGroup::AppSystemGroupStage_t CAppSystemGroup::GetCurrentStage() const
|
|
|
|
|
{
|
|
|
|
|
return m_nCurrentStage;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-30 21:22:17 +01:00
|
|
|
|
void VAppSystemGroup::Attach(void) const
|
|
|
|
|
{
|
2023-04-01 01:27:04 +02:00
|
|
|
|
DetourAttach(&CAppSystemGroup_Destroy, &CAppSystemGroup::StaticDestroy);
|
2023-01-30 21:22:17 +01:00
|
|
|
|
}
|
|
|
|
|
void VAppSystemGroup::Detach(void) const
|
|
|
|
|
{
|
2023-04-01 01:27:04 +02:00
|
|
|
|
DetourDetach(&CAppSystemGroup_Destroy, &CAppSystemGroup::StaticDestroy);
|
2023-01-30 21:22:17 +01:00
|
|
|
|
}
|