From 334e8f97b8d140941c61c4d1c3464684fc69a01c Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Fri, 12 Jul 2013 07:30:00 -0500 Subject: [PATCH] Updated IAppSystem and ICommandLine. --- public/appframework/IAppSystem.h | 6 ++++-- public/filesystem_passthru.h | 2 +- public/tier0/icommandline.h | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/public/appframework/IAppSystem.h b/public/appframework/IAppSystem.h index c83dcea7..fc0a3c9a 100644 --- a/public/appframework/IAppSystem.h +++ b/public/appframework/IAppSystem.h @@ -77,8 +77,8 @@ public: // Reconnect to a particular interface virtual void Reconnect( CreateInterfaceFn factory, const char *pInterfaceName ) = 0; - // New in Dota. Seems to do nothing but return true in most or all cases. - virtual bool UnknownFunc1() = 0; + // Returns whether or not the app system is a singleton + virtual bool IsSingleton() = 0; }; @@ -108,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 0402a955..56638eb4 100644 --- a/public/filesystem_passthru.h +++ b/public/filesystem_passthru.h @@ -95,7 +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 UnknownFunc1() { return m_pFileSystemPassThru->UnknownFunc1(); } + 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 ); } diff --git a/public/tier0/icommandline.h b/public/tier0/icommandline.h index b8b764e5..534282a7 100644 --- a/public/tier0/icommandline.h +++ b/public/tier0/icommandline.h @@ -42,6 +42,10 @@ public: // copies the string passwed 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; }; //-----------------------------------------------------------------------------