fixed plugins being loaded twice if they were loaded previously

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40389
This commit is contained in:
Borja Ferrer
2007-01-27 00:03:34 +00:00
parent 326ac67c68
commit 21123f4c74
3 changed files with 45 additions and 17 deletions
+3 -1
View File
@@ -251,13 +251,15 @@ namespace SourceMod
* @param type Lifetime of the plugin.
* @param error Buffer to hold any error message.
* @param err_max Maximum length of error message buffer.
* @param wasloaded Stores if the plugin is already loaded.
* @return A new plugin pointer on success, false otherwise.
*/
virtual IPlugin *LoadPlugin(const char *path,
bool debug,
PluginType type,
char error[],
size_t err_max) =0;
size_t err_max,
bool *wasloaded) =0;
/**
* @brief Attempts to unload a plugin.