Why was this not const? I have no idea, but what a lame commit for me to make after all this time
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401417
This commit is contained in:
parent
09618e15e1
commit
532f0bde47
@ -479,7 +479,7 @@ void SourceModBase::DoGlobalPluginLoads()
|
||||
g_PluginSys.AllPluginsLoaded();
|
||||
}
|
||||
|
||||
size_t SourceModBase::BuildPath(PathType type, char *buffer, size_t maxlength, char *format, ...)
|
||||
size_t SourceModBase::BuildPath(PathType type, char *buffer, size_t maxlength, const char *format, ...)
|
||||
{
|
||||
char _buffer[PLATFORM_MAX_PATH];
|
||||
va_list ap;
|
||||
|
@ -103,7 +103,7 @@ public: // SMGlobalClass
|
||||
public: // ISourceMod
|
||||
const char *GetGamePath() const;
|
||||
const char *GetSourceModPath() const;
|
||||
size_t BuildPath(PathType type, char *buffer, size_t maxlength, char *format, ...);
|
||||
size_t BuildPath(PathType type, char *buffer, size_t maxlength, const char *format, ...);
|
||||
void LogMessage(IExtension *pExt, const char *format, ...);
|
||||
void LogError(IExtension *pExt, const char *format, ...);
|
||||
size_t FormatString(char *buffer, size_t maxlength, IPluginContext *pContext, const cell_t *params, unsigned int param);
|
||||
|
@ -101,7 +101,7 @@ namespace SourceMod
|
||||
* @param ... Format arguments.
|
||||
* @return Number of bytes written.
|
||||
*/
|
||||
virtual size_t BuildPath(PathType type, char *buffer, size_t maxlength, char *format, ...) =0;
|
||||
virtual size_t BuildPath(PathType type, char *buffer, size_t maxlength, const char *format, ...) =0;
|
||||
|
||||
/**
|
||||
* @brief Logs a message to the SourceMod logs.
|
||||
|
Loading…
Reference in New Issue
Block a user