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 /hammer/pakdoc.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'hammer/pakdoc.h')
| -rw-r--r-- | hammer/pakdoc.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/hammer/pakdoc.h b/hammer/pakdoc.h new file mode 100644 index 0000000..af3db62 --- /dev/null +++ b/hammer/pakdoc.h @@ -0,0 +1,62 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// +// PakDoc.h : header file +// + +///////////////////////////////////////////////////////////////////////////// +// CPakDoc document + +typedef struct +{ char magic[4]; // Name of the new WAD format + long diroffset; // Position of WAD directory from start of file + long dirsize; // Number of entries * 0x40 (64 char) +} pakheader_t; + +typedef struct +{ char filename[50]; // Name of the file, Unix style, with extension, + // 50 chars, padded with '\0'. + long offset; // Position of the entry in PACK file + long size; // Size of the entry in PACK file +} pakentry_t; + +class CPakDoc : public CDocument +{ +protected: + CPakDoc(); // protected constructor used by dynamic creation + DECLARE_DYNCREATE(CPakDoc) + +// Attributes +public: + +// Operations +public: + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CPakDoc) + public: + virtual void Serialize(CArchive& ar); // overridden for document i/o + protected: + virtual BOOL OnNewDocument(); + //}}AFX_VIRTUAL + +// Implementation +public: + virtual ~CPakDoc(); +#ifdef _DEBUG + virtual void AssertValid() const; + virtual void Dump(CDumpContext& dc) const; +#endif + + // Generated message map functions +protected: + //{{AFX_MSG(CPakDoc) + // NOTE - the ClassWizard will add and remove member functions here. + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; |