Raised This Month: $ Target: $400
 0% 

KeyValue key behaves differently between \ and / slashes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 07-23-2014 , 20:27   Re: KeyValue key behaves differently between \ and / slashes
Reply With Quote #1

'\' is an escape character in KV.
The '/' subkey feature has existed for a while: https://mxr.alliedmods.net/hl2sdk-sd...Values.cpp#923
__________________
VoiDeD is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-25-2014 , 18:40   Re: KeyValue key behaves differently between \ and / slashes
Reply With Quote #2

Quote:
Originally Posted by VoiDeD View Post
'\' is an escape character in KV.
The '/' subkey feature has existed for a while: https://mxr.alliedmods.net/hl2sdk-sd...Values.cpp#923
Last I checked, escape characters are turned off on KV unless you explicitly turn them on. In SourcePawn, this is done with the KvSetEscapeSequences command.

Edit: Incidentally, the / "feature" explains a bug I've seen before when trying to check if a key exists and the key itself is a filepath.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-26-2014 at 04:36.
Powerlord is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode