Renamed err_max to maxlength. Yes, I am crazy.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40761
This commit is contained in:
@@ -124,14 +124,14 @@ namespace SourceMod
|
||||
* @param me Pointer back to extension.
|
||||
* @param sys Pointer to interface sharing system of SourceMod.
|
||||
* @param error Error buffer to print back to, if any.
|
||||
* @param err_max Maximum size of error buffer.
|
||||
* @param maxlength Maximum size of error buffer.
|
||||
* @param late If this extension was loaded "late" (i.e. manually).
|
||||
* @return True if load should continue, false otherwise.
|
||||
*/
|
||||
virtual bool OnExtensionLoad(IExtension *me,
|
||||
IShareSys *sys,
|
||||
char *error,
|
||||
size_t err_max,
|
||||
size_t maxlength,
|
||||
bool late) =0;
|
||||
|
||||
/**
|
||||
@@ -175,7 +175,7 @@ namespace SourceMod
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Return false to tell Core that your extension should be considered usable.
|
||||
* @brief Return false to tell Core that your extension should be considered unusable.
|
||||
*
|
||||
* @param error Error buffer.
|
||||
* @param maxlength Size of error buffer.
|
||||
@@ -229,13 +229,13 @@ namespace SourceMod
|
||||
* @param path Path to extension file, relative to the extensions folder.
|
||||
* @param lifetime Lifetime of the extension (currently ignored).
|
||||
* @param error Error buffer.
|
||||
* @param err_max Maximum error buffer length.
|
||||
* @param maxlength Maximum error buffer length.
|
||||
* @return New IExtension on success, NULL on failure.
|
||||
*/
|
||||
virtual IExtension *LoadExtension(const char *path,
|
||||
ExtensionLifetime lifetime,
|
||||
char *error,
|
||||
size_t err_max) =0;
|
||||
size_t maxlength) =0;
|
||||
|
||||
/**
|
||||
* @brief Attempts to unload a module.
|
||||
|
||||
@@ -116,10 +116,10 @@ namespace SourceMod
|
||||
*
|
||||
* @param path Path to library file (.dll/.so).
|
||||
* @param error Buffer for any error message (may be NULL).
|
||||
* @param err_max Maximum length of error buffer.
|
||||
* @param maxlength Maximum length of error buffer.
|
||||
* @return Pointer to an ILibrary, NULL if failed.
|
||||
*/
|
||||
virtual ILibrary *OpenLibrary(const char *path, char *error, size_t err_max) =0;
|
||||
virtual ILibrary *OpenLibrary(const char *path, char *error, size_t maxlength) =0;
|
||||
|
||||
/**
|
||||
* @brief Opens a directory for reading.
|
||||
@@ -158,9 +158,9 @@ namespace SourceMod
|
||||
* POSIX equivalent: errno + strerror()
|
||||
*
|
||||
* @param error Error message buffer.
|
||||
* @param err_max Maximum length of error buffer.
|
||||
* @param maxlength Maximum length of error buffer.
|
||||
*/
|
||||
virtual void GetPlatformError(char *error, size_t err_max) =0;
|
||||
virtual void GetPlatformError(char *error, size_t maxlength) =0;
|
||||
|
||||
/**
|
||||
* @brief Formats a string similar to snprintf(), except
|
||||
|
||||
+2
-2
@@ -279,7 +279,7 @@ namespace SourceMod
|
||||
* @param debug Whether or not to default the plugin into debug mode.
|
||||
* @param type Lifetime of the plugin.
|
||||
* @param error Buffer to hold any error message.
|
||||
* @param err_max Maximum length of error message buffer.
|
||||
* @param maxlength Maximum length of error message buffer.
|
||||
* @param wasloaded Stores if the plugin is already loaded.
|
||||
* @return A new plugin pointer on success, false otherwise.
|
||||
*/
|
||||
@@ -287,7 +287,7 @@ namespace SourceMod
|
||||
bool debug,
|
||||
PluginType type,
|
||||
char error[],
|
||||
size_t err_max,
|
||||
size_t maxlength,
|
||||
bool *wasloaded) =0;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user