Raised This Month: $ Target: $400
 0% 

KeyValue key behaves differently between \ and / slashes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #4

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
 



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 22:39.


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