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 /sdklauncher/configs.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'sdklauncher/configs.h')
| -rw-r--r-- | sdklauncher/configs.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sdklauncher/configs.h b/sdklauncher/configs.h new file mode 100644 index 0000000..4a9606a --- /dev/null +++ b/sdklauncher/configs.h @@ -0,0 +1,45 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef CONFIGS_H +#define CONFIGS_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "utlvector.h" + + +enum ModType_t +{ + ModType_HL2, + ModType_HL2_Multiplayer, + ModType_FromScratch, + ModType_SourceCodeOnly +}; + + +class CGameConfig +{ +public: + CUtlVector<char> m_Name; + CUtlVector<char> m_ModDir; +}; + + +const char* GetIniFilePath(); + +void UtlStrcpy( CUtlVector<char> &dest, const char *pSrc ); +void LoadGameConfigs( CUtlVector<CGameConfig*> &configs ); +bool AddConfigToGameIni( const char *pModName, const char *pModDirectory, const char *pSourceIniFilename="new_mod_config.ini" ); +void AddDefaultHalfLife2Config( bool bForce ); +void AddDefaultHL2MPConfig( bool bForce ); +void AddDefaultHammerIniFile(); +bool AddConfig( const char *pModName, const char *pModDirectory, ModType_t modType ); + + +#endif // CONFIGS_H |