1.1 --- a/sourcemm/ISmmAPI.h Fri Dec 23 23:32:21 2005 +0000
1.2 +++ b/sourcemm/ISmmAPI.h Fri Dec 23 23:38:38 2005 +0000
1.3 @@ -83,6 +83,21 @@
1.4 * reformats the string to increase the number, then returns the new number.
1.5 */
1.6 virtual int FormatIface(char iface[], unsigned int maxlength) =0;
1.7 +public: //Added in 1.2 (1:2)
1.8 + /**
1.9 + * @brief Searches for an interface for you.
1.10 + */
1.11 + virtual void *InterfaceSearch(CreateInterfaceFn fn, const char *iface, int max, int *ret) =0;
1.12 +
1.13 + /**
1.14 + * @brief Returns the base directory of the game/server, equivalent to IVEngineServer::GetGameDir
1.15 + */
1.16 + virtual const char *GetBaseDir() =0;
1.17 +
1.18 + /**
1.19 + * @brief Formats a file path to the local OS. Does not include any base directories.
1.20 + */
1.21 + virtual void PathFormat(char *buffer, size_t len, const char *fmt, ...) =0;
1.22 };
1.23
1.24