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.

76 lines
2.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // SteamDebugHelperDlg.h : header file
  9. //
  10. #if !defined(AFX_STEAMDEBUGHELPERDLG_H__E56B9648_8997_47D7_BEE1_CA0B572B380B__INCLUDED_)
  11. #define AFX_STEAMDEBUGHELPERDLG_H__E56B9648_8997_47D7_BEE1_CA0B572B380B__INCLUDED_
  12. #if _MSC_VER > 1000
  13. #pragma once
  14. #endif // _MSC_VER > 1000
  15. #include "KeyValues.h"
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CSteamDebugHelperDlg dialog
  18. class CSteamDebugHelperDlg : public CDialog
  19. {
  20. // Construction
  21. public:
  22. CSteamDebugHelperDlg(CWnd* pParent = NULL); // standard constructor
  23. // Dialog Data
  24. //{{AFX_DATA(CSteamDebugHelperDlg)
  25. enum { IDD = IDD_STEAMDEBUGHELPER_DIALOG };
  26. // NOTE: the ClassWizard will add data members here
  27. //}}AFX_DATA
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CSteamDebugHelperDlg)
  30. protected:
  31. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  32. //}}AFX_VIRTUAL
  33. void SetConfigFilename( const char *pName );
  34. CString m_ConfigFilename;
  35. KeyValues* LoadConfigFile();
  36. // Extracted from the kv file.
  37. const char *m_pSourceExeDir;
  38. KeyValues *m_pSteamAppCfg;
  39. const char *m_pSteamAppDir;
  40. char m_SteamBaseDir[512];
  41. // Implementation
  42. protected:
  43. HICON m_hIcon;
  44. // Generated message map functions
  45. //{{AFX_MSG(CSteamDebugHelperDlg)
  46. virtual BOOL OnInitDialog();
  47. afx_msg void OnPaint();
  48. afx_msg HCURSOR OnQueryDragIcon();
  49. afx_msg void OnSetupForDebugging();
  50. afx_msg void OnUnsetupForDebugging();
  51. afx_msg void OnStartSteam();
  52. afx_msg void OnEditConfigFile();
  53. afx_msg void OnEditChooseConfigFile();
  54. //}}AFX_MSG
  55. DECLARE_MESSAGE_MAP()
  56. };
  57. //{{AFX_INSERT_LOCATION}}
  58. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  59. #endif // !defined(AFX_STEAMDEBUGHELPERDLG_H__E56B9648_8997_47D7_BEE1_CA0B572B380B__INCLUDED_)