From a93faa3cbf1d0715fbe5dda490682e74641b3a8d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 13 Dec 2006 11:19:46 +0000 Subject: [PATCH] exposed new pathformat function to ILibrarySys --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40215 --- core/interfaces/ILibrarySys.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/interfaces/ILibrarySys.h b/core/interfaces/ILibrarySys.h index aed3379a..c59bc50e 100644 --- a/core/interfaces/ILibrarySys.h +++ b/core/interfaces/ILibrarySys.h @@ -131,6 +131,18 @@ namespace SourceMod * @param err_max Maximum length of error buffer. */ virtual void GetPlatformError(char *error, size_t err_max) =0; + + /** + * @brief Formats a string similar to snprintf(), except + * corrects all non-platform compatible path separators to be + * the correct platform character. + * + * @param buffer Output buffer pointer. + * @param maxlength Output buffer size. + * @param pathfmt Format string of path. + * @param ... Format string arguments. + */ + virtual void PathFormat(char *buffer, size_t maxlength, const char *pathfmt, ...) =0; }; };