1.1 --- a/public/ILibrarySys.h Fri Mar 29 12:28:02 2013 -0400
1.2 +++ b/public/ILibrarySys.h Fri Mar 29 11:37:29 2013 -0700
1.3 @@ -43,7 +43,7 @@
1.4 namespace SourceMod
1.5 {
1.6 #define SMINTERFACE_LIBRARYSYS_NAME "ILibrarySys"
1.7 - #define SMINTERFACE_LIBRARYSYS_VERSION 4
1.8 + #define SMINTERFACE_LIBRARYSYS_VERSION 5
1.9
1.10 enum FileTimeType
1.11 {
1.12 @@ -223,6 +223,16 @@
1.13 * @return True on success, false on failure.
1.14 */
1.15 virtual bool FileTime(const char *path, FileTimeType type, time_t *pTime) =0;
1.16 +
1.17 + /**
1.18 + * @brief Retrieve the file component of the given path.
1.19 + *
1.20 + * @param buffer Output buffer.
1.21 + * @param maxlength Length of the output buffer.
1.22 + * @param path Path to search for a filename.
1.23 + * @return Number of bytes written to buffer, not including the null terminator.
1.24 + */
1.25 + virtual size_t GetFileFromPath(char *buffer, size_t maxlength, const char *path) =0;
1.26 };
1.27 }
1.28