GetConVarDefault Function

Retrieves the default string value of a console variable.

int GetConVarDefault(Handle convar, char[] value, int maxlength)

Parameters

Handle convar

Handle to the convar.

char[] value

Buffer to store the default value of the convar.

int maxlength

Maximum length of string buffer.

Return Value

Number of bytes written to the buffer (UTF-8 safe).

Errors

Invalid or corrupt Handle.