mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-07 10:38:23 +00:00
51 lines
1.2 KiB
C
51 lines
1.2 KiB
C
//========= Copyright © 1996-2005, 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
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1400
|
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
|
#define _CRT_SECURE_NO_WARNINGS
|
|
#endif
|
|
|
|
#pragma warning(disable : 4996) // functions declared deprecated
|
|
#endif
|
|
|
|
|
|
typedef float vec_t;
|
|
typedef float vec3_t[3];
|
|
|
|
typedef unsigned char byte;
|
|
typedef int qboolean;
|
|
|
|
|
|
void Msg( const char *pMsg, ... );
|
|
void Warning( const char *pMsg, ... );
|
|
void Error( 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
|