StringToKeyValues Function

Converts a given string to a KeyValues tree. The string is read into the current postion of the tree.

bool StringToKeyValues(Handle kv, const char[] buffer, const char[] resourceName)

Parameters

Handle kv

KeyValues Handle.

const char[] buffer

String buffer to load into the KeyValues.

const char[] resourceName

The resource name of the KeyValues, used for error tracking purposes.

Return Value

True on success, false otherwise.

Errors

Invalid Handle.