Updated IAppSystem and ICommandLine.

This commit is contained in:
Scott Ehlert 2013-07-12 07:30:00 -05:00
parent b4f7c7966a
commit 334e8f97b8
3 changed files with 9 additions and 3 deletions

View File

@ -77,8 +77,8 @@ public:
// Reconnect to a particular interface // Reconnect to a particular interface
virtual void Reconnect( CreateInterfaceFn factory, const char *pInterfaceName ) = 0; virtual void Reconnect( CreateInterfaceFn factory, const char *pInterfaceName ) = 0;
// New in Dota. Seems to do nothing but return true in most or all cases. // Returns whether or not the app system is a singleton
virtual bool UnknownFunc1() = 0; virtual bool IsSingleton() = 0;
}; };
@ -108,6 +108,8 @@ public:
{ {
ReconnectInterface( factory, pInterfaceName ); ReconnectInterface( factory, pInterfaceName );
} }
virtual bool IsSingleton() { return true; }
}; };

View File

@ -95,7 +95,7 @@ public:
virtual const AppSystemInfo_t* GetDependencies() { return m_pFileSystemPassThru->GetDependencies(); } virtual const AppSystemInfo_t* GetDependencies() { return m_pFileSystemPassThru->GetDependencies(); }
virtual AppSystemTier_t GetTier() { return m_pFileSystemPassThru->GetTier(); } virtual AppSystemTier_t GetTier() { return m_pFileSystemPassThru->GetTier(); }
virtual void Reconnect( CreateInterfaceFn factory, const char *pInterfaceName ) { m_pFileSystemPassThru->Reconnect( factory, pInterfaceName ); } virtual void Reconnect( CreateInterfaceFn factory, const char *pInterfaceName ) { m_pFileSystemPassThru->Reconnect( factory, pInterfaceName ); }
virtual bool UnknownFunc1() { return m_pFileSystemPassThru->UnknownFunc1(); } virtual bool IsSingleton() { return m_pFileSystemPassThru->IsSingleton(); }
virtual void RemoveAllSearchPaths( void ) { m_pFileSystemPassThru->RemoveAllSearchPaths(); } 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 ); } virtual void AddSearchPath( const char *pPath, const char *pathID, SearchPathAdd_t addType ) { m_pFileSystemPassThru->AddSearchPath( pPath, pathID, addType ); }

View File

@ -42,6 +42,10 @@ public:
// copies the string passwed // copies the string passwed
virtual void SetParm( int nIndex, char const *pNewParm ) =0; virtual void SetParm( int nIndex, char const *pNewParm ) =0;
virtual void RemoveParmByIndex( int nIndex ) = 0;
virtual void CreateCmdLinePrependAppName( const char *commandline ) = 0;
virtual const char **GetParms() const = 0;
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------