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.

62 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // PakDoc.h : header file
  9. //
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPakDoc document
  12. typedef struct
  13. { char magic[4]; // Name of the new WAD format
  14. long diroffset; // Position of WAD directory from start of file
  15. long dirsize; // Number of entries * 0x40 (64 char)
  16. } pakheader_t;
  17. typedef struct
  18. { char filename[50]; // Name of the file, Unix style, with extension,
  19. // 50 chars, padded with '\0'.
  20. long offset; // Position of the entry in PACK file
  21. long size; // Size of the entry in PACK file
  22. } pakentry_t;
  23. class CPakDoc : public CDocument
  24. {
  25. protected:
  26. CPakDoc(); // protected constructor used by dynamic creation
  27. DECLARE_DYNCREATE(CPakDoc)
  28. // Attributes
  29. public:
  30. // Operations
  31. public:
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CPakDoc)
  35. public:
  36. virtual void Serialize(CArchive& ar); // overridden for document i/o
  37. protected:
  38. virtual BOOL OnNewDocument();
  39. //}}AFX_VIRTUAL
  40. // Implementation
  41. public:
  42. virtual ~CPakDoc();
  43. #ifdef _DEBUG
  44. virtual void AssertValid() const;
  45. virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47. // Generated message map functions
  48. protected:
  49. //{{AFX_MSG(CPakDoc)
  50. // NOTE - the ClassWizard will add and remove member functions here.
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };