Added API to grab arbitrary kv pairs from core.cfg.

This commit is contained in:
David Anderson
2009-02-17 16:19:11 -05:00
parent 97e25c37de
commit 9e445a5adf
5 changed files with 49 additions and 1 deletions
+10 -1
View File
@@ -43,7 +43,7 @@
#include <time.h>
#define SMINTERFACE_SOURCEMOD_NAME "ISourceMod"
#define SMINTERFACE_SOURCEMOD_VERSION 9
#define SMINTERFACE_SOURCEMOD_VERSION 10
/**
* @brief Forward declaration of the KeyValues class.
@@ -287,6 +287,15 @@ namespace SourceMod
* @param data Data to pass to function.
*/
virtual void AddFrameAction(FRAMEACTION fn, void *data) = 0;
/**
* @brief Retrieves a core.cfg configuration value.
*
* @param key Core.cfg key phrase.
* @return Value string, or NULL on failure.
* The string will be destroyed on core.cfg reparses.
*/
virtual const char *GetCoreConfigValue(const char *key) = 0;
};
}