diff options
Diffstat (limited to 'public/tier2/keyvaluesmacros.h')
| -rw-r--r-- | public/tier2/keyvaluesmacros.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/public/tier2/keyvaluesmacros.h b/public/tier2/keyvaluesmacros.h new file mode 100644 index 0000000..93d0c26 --- /dev/null +++ b/public/tier2/keyvaluesmacros.h @@ -0,0 +1,22 @@ +//===================== Copyright (c) Valve Corporation. All Rights Reserved. ====================== +// +//================================================================================================== + +#pragma once + + +//-------------------------------------------------------------------------------------------------- +// Returns true if the passed string matches the filename style glob, false otherwise +// * matches any characters, ? matches any single character, otherwise case insensitive matching +//-------------------------------------------------------------------------------------------------- +bool GlobMatch( const char *pszGlob, const char *pszString ); + +//-------------------------------------------------------------------------------------------------- +// Processes #insert and #update KeyValues macros +// +// #insert inserts a new KeyValues file replacing the KeyValues #insert with the new file +// +// #update updates sibling KeyValues blocks subkeys with its subkeys, overwriting and adding +// KeyValues as necessary +//-------------------------------------------------------------------------------------------------- +KeyValues *HandleKeyValuesMacros( KeyValues *kv, KeyValues *pkvParent = nullptr );
\ No newline at end of file |