mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Moved 'm_pFileSystem' to 'CSourceAppSystemGroup' (actually belongs there, CAppSystemGroup has to be 0xA8 in size in order for 'm_bDedicated' to line up in 'CModAppSystemGroup'). * Prefixed all static functions with 'Static' to avoid name collisions.
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
//===== Copyright <20> 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 "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);
|
||
} |