removed Handle:myself from OnPluginStart

added GetMyHandle to get handle now, but there's no use...

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40542
This commit is contained in:
David Anderson
2007-02-26 08:32:20 +00:00
parent 5cb299014a
commit 78eb5b7747
4 changed files with 32 additions and 12 deletions
+5 -1
View File
@@ -92,6 +92,11 @@ void CPlugin::InitIdentity()
}
}
Handle_t CPlugin::GetMyHandle()
{
return m_handle;
}
CPlugin *CPlugin::CreatePlugin(const char *file, char *error, size_t maxlength)
{
char fullpath[PLATFORM_MAX_PATH+1];
@@ -280,7 +285,6 @@ void CPlugin::Call_OnPluginStart()
return;
}
pFunction->PushCell(m_handle);
pFunction->Execute(&result);
}
+12 -10
View File
@@ -182,34 +182,36 @@ public:
bool IsRunnable() const;
/**
* Adds a language file index to the plugin's list.
*/
* Adds a language file index to the plugin's list.
*/
void AddLangFile(unsigned int index);
/**
* Get language file count for this plugin.
*/
* Get language file count for this plugin.
*/
size_t GetLangFileCount() const;
/**
* Get language file index based on the vector index.
*/
* Get language file index based on the vector index.
*/
unsigned int GetLangFileByIndex(unsigned int index) const;
public:
/**
* Returns the modification time during last plugin load.
*/
* Returns the modification time during last plugin load.
*/
time_t GetTimeStamp() const;
/**
* Returns the current modification time of the plugin file.
*/
* Returns the current modification time of the plugin file.
*/
time_t GetFileTimeStamp();
/**
* Returns true if the plugin was running, but is now invalid.
*/
bool WasRunning();
Handle_t GetMyHandle();
protected:
void UpdateInfo();
void SetTimeStamp(time_t t);