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 /utils/vconfig/vconfig_main.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'utils/vconfig/vconfig_main.h')
| -rw-r--r-- | utils/vconfig/vconfig_main.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/utils/vconfig/vconfig_main.h b/utils/vconfig/vconfig_main.h new file mode 100644 index 0000000..6ede1f8 --- /dev/null +++ b/utils/vconfig/vconfig_main.h @@ -0,0 +1,57 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//===========================================================================// + +#ifndef VPICKER_MAIN_H +#define VPICKER_MAIN_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Frame.h> +#include <KeyValues.h> + +#include "tier2/vconfig.h" +#include "ConfigManager.h" + +#define INVALID_CONFIG_ID -1 +#define NEW_CONFIG_ID -2 + +void UtlStrcpy( CUtlVector<char> &dest, const char *pSrc ); + +// ============================================== +// Container class for config information +// ============================================== +class CGameConfig +{ +public: + CGameConfig( void ) {} + CGameConfig( const char *name, const char *dir ) + { + UtlStrcpy( m_Name, name ); + UtlStrcpy( m_ModDir, dir ); + } + + CUtlVector<char> m_Name; + CUtlVector<char> m_ModDir; +}; + +extern CGameConfigManager g_ConfigManager; +extern CUtlVector<CGameConfig *> g_Configs; + +bool UpdateConfigs( void ); +void ReloadConfigs( bool bNoWarning = false ); +bool RemoveConfig( int configID ); +bool AddConfig( int configID ); +bool SaveConfigs( void ); +void SetMayaScriptSettings( ); +void SetXSIScriptSettings( ); +void SetPathSettings( ); + +const char *GetBaseDirectory( void ); +void VGUIMessageBox( vgui::Panel *pParent, const char *pTitle, PRINTF_FORMAT_STRING const char *pMsg, ... ); + + +#endif // VPICKER_MAIN_H |