Skip to content

Commit

Permalink
Update IAppSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Drifter321 committed May 15, 2015
1 parent ac5ed20 commit 0ef5c3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/appframework/IAppSystem.h
Expand Up @@ -76,6 +76,9 @@ abstract_class IAppSystem

// 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;
};


Expand Down Expand Up @@ -105,6 +108,8 @@ class CBaseAppSystem : public IInterface
{
ReconnectInterface( factory, pInterfaceName );
}

virtual bool IsSingleton() { return true; }
};


Expand Down
1 change: 1 addition & 0 deletions public/filesystem_passthru.h
Expand Up @@ -95,6 +95,7 @@ class CFileSystemPassThru : public CInternalFileSystemPassThru<IFileSystem>
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 ); }
Expand Down

0 comments on commit 0ef5c3c

Please sign in to comment.