Added GetConVarDefault() native (bug 4502, r=dvander).

This commit is contained in:
Scott Ehlert
2010-07-06 17:32:58 -05:00
parent 651dfb796c
commit 6f16fc77b8
2 changed files with 30 additions and 0 deletions
+11
View File
@@ -593,6 +593,17 @@ native SetConVarString(Handle:convar, const String:value[], bool:replicate=false
*/
native ResetConVar(Handle:convar, bool:replicate=false, bool:notify=false);
/**
* Retrieves the default string value of a console variable.
*
* @param convar Handle to the convar.
* @param default Buffer to store the default value of the convar.
* @param maxlength Maximum length of string buffer.
* @return Number of bytes written to the buffer (UTF-8 safe).
* @error Invalid or corrupt Handle.
*/
native GetConVarDefault(Handle:convar, String:default[], maxlength);
/**
* Returns the bitstring of flags on a console variable.
*