diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/tier2/vconfig.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/tier2/vconfig.h')
| -rw-r--r-- | sp/src/public/tier2/vconfig.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sp/src/public/tier2/vconfig.h b/sp/src/public/tier2/vconfig.h new file mode 100644 index 00000000..9403bf15 --- /dev/null +++ b/sp/src/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 |