diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/tier2/vconfig.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/tier2/vconfig.h')
| -rw-r--r-- | public/tier2/vconfig.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/public/tier2/vconfig.h b/public/tier2/vconfig.h new file mode 100644 index 0000000..2ccf9d1 --- /dev/null +++ b/public/tier2/vconfig.h @@ -0,0 +1,29 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Utilities for setting vproject settings +// +//===========================================================================// + +#ifndef _VCONFIG_H +#define _VCONFIG_H + +#ifdef _WIN32 +#pragma once +#endif + + +// The registry keys that vconfig uses to store the current vproject directory. +//#define VPROJECT_REG_KEY "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment" +// Moved to simply 'Environment' - we need to set in HKEY_CURRENT_USER and not local machine, to avoid security issues in vista! +#define VPROJECT_REG_KEY "Environment" + +// For accessing the environment variables we store the current vproject in. +void SetVConfigRegistrySetting( const char *pName, const char *pValue, bool bNotify = true ); +bool GetVConfigRegistrySetting( const char *pName, char *pReturn, int size ); +#ifdef _WIN32 +bool RemoveObsoleteVConfigRegistrySetting( const char *pValueName, char *pOldValue = NULL , int size = 0 ); +#endif +bool ConvertObsoleteVConfigRegistrySetting( const char *pValueName ); + + +#endif // _VCONFIG_H
\ No newline at end of file |