summaryrefslogtreecommitdiff
path: root/utils/xwad/goldsrc_standin.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/xwad/goldsrc_standin.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/xwad/goldsrc_standin.h')
-rw-r--r--utils/xwad/goldsrc_standin.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/utils/xwad/goldsrc_standin.h b/utils/xwad/goldsrc_standin.h
new file mode 100644
index 0000000..2acb7be
--- /dev/null
+++ b/utils/xwad/goldsrc_standin.h
@@ -0,0 +1,42 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: This file provides some of the goldsrc functionality for xwad.
+//
+//=============================================================================//
+
+#ifndef GOLDSRC_STANDIN_H
+#define GOLDSRC_STANDIN_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+typedef float vec_t;
+typedef float vec3_t[3];
+
+typedef unsigned char byte;
+typedef int qboolean;
+
+
+void Msg( PRINTF_FORMAT_STRING const char *pMsg, ... );
+void Warning( PRINTF_FORMAT_STRING const char *pMsg, ... );
+void Error( PRINTF_FORMAT_STRING const char *pMsg, ... );
+
+int LoadFile (char *filename, void **bufferptr);
+void SaveFile (char *filename, void *buffer, int count);
+
+short BigShort (short l);
+short LittleShort (short l);
+int BigLong (int l);
+int LittleLong (int l);
+float BigFloat (float l);
+float LittleFloat (float l);
+
+
+FILE *SafeOpenWrite (char *filename);
+FILE *SafeOpenRead (char *filename);
+void SafeRead (FILE *f, void *buffer, int count);
+void SafeWrite (FILE *f, void *buffer, int count);
+
+
+#endif // GOLDSRC_STANDIN_H