Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
980 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef CONFIGS_H
  7. #define CONFIGS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "utlvector.h"
  12. enum ModType_t
  13. {
  14. ModType_HL2,
  15. ModType_HL2_Multiplayer,
  16. ModType_FromScratch,
  17. ModType_SourceCodeOnly
  18. };
  19. class CGameConfig
  20. {
  21. public:
  22. CUtlVector<char> m_Name;
  23. CUtlVector<char> m_ModDir;
  24. };
  25. const char* GetIniFilePath();
  26. void UtlStrcpy( CUtlVector<char> &dest, const char *pSrc );
  27. void LoadGameConfigs( CUtlVector<CGameConfig*> &configs );
  28. bool AddConfigToGameIni( const char *pModName, const char *pModDirectory, const char *pSourceIniFilename="new_mod_config.ini" );
  29. void AddDefaultHalfLife2Config( bool bForce );
  30. void AddDefaultHL2MPConfig( bool bForce );
  31. void AddDefaultHammerIniFile();
  32. bool AddConfig( const char *pModName, const char *pModDirectory, ModType_t modType );
  33. #endif // CONFIGS_H