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.
42 lines
1.1 KiB
42 lines
1.1 KiB
//========= 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
|