Skip to content

Conversation

@SirYodaJedi
Copy link

The texturename KV doesn't work due to relying upon DEFINE_AUTO_ARRAY_KEYFIELD(), which doesn't handle keyvalue parsing correctly. While the macro could be fixed, it's hardly ever used (it's for C strings, whereas most KVs use string_t), and it's easier to just to manually handle parsing the KV in the KeyValues function, using DEFINE_AUTO_ARRAY() instead.

This PR is similar to the fix that Portal 2 did, but was developed independently, referencing only SDK code.

DEFINE_AUTO_ARRAY_KEYFIELD() doesn't currently properly handle keyvalue parsing, so it's better to just use DEFINE_AUTO_ARRAY() and manually parse the keyvalue in the KeyValues function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant