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.

57 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef VPICKER_MAIN_H
  7. #define VPICKER_MAIN_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui_controls/Frame.h>
  12. #include <KeyValues.h>
  13. #include "tier2/vconfig.h"
  14. #include "ConfigManager.h"
  15. #define INVALID_CONFIG_ID -1
  16. #define NEW_CONFIG_ID -2
  17. void UtlStrcpy( CUtlVector<char> &dest, const char *pSrc );
  18. // ==============================================
  19. // Container class for config information
  20. // ==============================================
  21. class CGameConfig
  22. {
  23. public:
  24. CGameConfig( void ) {}
  25. CGameConfig( const char *name, const char *dir )
  26. {
  27. UtlStrcpy( m_Name, name );
  28. UtlStrcpy( m_ModDir, dir );
  29. }
  30. CUtlVector<char> m_Name;
  31. CUtlVector<char> m_ModDir;
  32. };
  33. extern CGameConfigManager g_ConfigManager;
  34. extern CUtlVector<CGameConfig *> g_Configs;
  35. bool UpdateConfigs( void );
  36. void ReloadConfigs( bool bNoWarning = false );
  37. bool RemoveConfig( int configID );
  38. bool AddConfig( int configID );
  39. bool SaveConfigs( void );
  40. void SetMayaScriptSettings( );
  41. void SetXSIScriptSettings( );
  42. void SetPathSettings( );
  43. const char *GetBaseDirectory( void );
  44. void VGUIMessageBox( vgui::Panel *pParent, const char *pTitle, PRINTF_FORMAT_STRING const char *pMsg, ... );
  45. #endif // VPICKER_MAIN_H