summaryrefslogtreecommitdiff
path: root/utils/hlmv/pakviewer.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/hlmv/pakviewer.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/hlmv/pakviewer.h')
-rw-r--r--utils/hlmv/pakviewer.h99
1 files changed, 99 insertions, 0 deletions
diff --git a/utils/hlmv/pakviewer.h b/utils/hlmv/pakviewer.h
new file mode 100644
index 0000000..c5c4acf
--- /dev/null
+++ b/utils/hlmv/pakviewer.h
@@ -0,0 +1,99 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+//
+// Half-Life Model Viewer (c) 1999 by Mete Ciragan
+//
+// file: pakviewer.h
+// last modified: Apr 28 1999, Mete Ciragan
+// copyright: The programs and associated files contained in this
+// distribution were developed by Mete Ciragan. The programs
+// are not in the public domain, but they are freely
+// distributable without licensing fees. These programs are
+// provided without guarantee or warrantee expressed or
+// implied.
+//
+// version: 1.2
+//
+// web: http://www.swissquake.ch/chumbalum-soft/
+//
+#ifndef INCLUDED_PAKVIEWER
+#define INCLUDED_PAKVIEWER
+
+
+
+#ifndef INCLUDED_MXWINDOW
+#include "mxWindow.h"
+#endif
+
+
+
+#define IDC_PAKVIEWER 1001
+
+
+
+typedef struct
+{
+ char name[56];
+ int filepos;
+ int filelen;
+} lump_t;
+
+
+
+#ifdef __cpluspus
+extern "C" {
+#endif
+
+int pak_ExtractFile (const char *pakFile, const char *lumpName, char *outFile);
+
+#ifdef __cpluspus
+}
+#endif
+
+
+
+class mxTreeView;
+class mxButton;
+class mxPopupMenu;
+// class GlWindow;
+
+
+
+class PAKViewer : public mxWindow
+{
+ char d_pakFile[256];
+ char d_currLumpName[256];
+ bool d_loadEntirePAK;
+ mxTreeView *tvPAK;
+ mxPopupMenu *pmMenu;
+
+public:
+ // CREATORS
+ PAKViewer (mxWindow *window);
+ ~PAKViewer ();
+
+ // MANIPULATORS
+ virtual int handleEvent (mxEvent *event);
+ int OnPAKViewer ();
+ int OnLoadModel ();
+ int OnLoadTexture (int pos);
+ int OnPlaySound ();
+ int OnExtract ();
+
+ bool openPAKFile (const char *pakFile);
+ void closePAKFile ();
+ void setLoadEntirePAK (bool b) { d_loadEntirePAK = b; }
+
+ // ACCESSORS
+ bool getLoadEntirePAK () const { return d_loadEntirePAK; }
+};
+
+
+
+#endif // INCLUDED_PAKVIEWER \ No newline at end of file