KeyValues.ImportFromString Method

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

bool ImportFromString(const char[] buffer, const char[] resourceName)

Parameters

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.