diff --git a/public/appframework/IAppSystem.h b/public/appframework/IAppSystem.h index 20f9285c..b3fe53bb 100644 --- a/public/appframework/IAppSystem.h +++ b/public/appframework/IAppSystem.h @@ -76,6 +76,9 @@ public: // Reconnect to a particular interface virtual void Reconnect( CreateInterfaceFn factory, const char *pInterfaceName ) = 0; + + // Returns whether or not the app system is a singleton + virtual bool IsSingleton() = 0; }; @@ -105,6 +108,8 @@ public: { ReconnectInterface( factory, pInterfaceName ); } + + virtual bool IsSingleton() { return true; } }; diff --git a/public/filesystem_passthru.h b/public/filesystem_passthru.h index eccbe04f..8a589974 100644 --- a/public/filesystem_passthru.h +++ b/public/filesystem_passthru.h @@ -95,6 +95,7 @@ public: virtual const AppSystemInfo_t* GetDependencies() { return m_pFileSystemPassThru->GetDependencies(); } virtual AppSystemTier_t GetTier() { return m_pFileSystemPassThru->GetTier(); } virtual void Reconnect( CreateInterfaceFn factory, const char *pInterfaceName ) { m_pFileSystemPassThru->Reconnect( factory, pInterfaceName ); } + virtual bool IsSingleton() { return m_pFileSystemPassThru->IsSingleton(); } virtual void RemoveAllSearchPaths( void ) { m_pFileSystemPassThru->RemoveAllSearchPaths(); } virtual void AddSearchPath( const char *pPath, const char *pathID, SearchPathAdd_t addType ) { m_pFileSystemPassThru->AddSearchPath( pPath, pathID, addType ); }