Team Fortress 2 Source Code as on 22/4/2020
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

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: This file provides some of the goldsrc functionality for xwad.
  4. //
  5. //=============================================================================//
  6. #ifndef GOLDSRC_STANDIN_H
  7. #define GOLDSRC_STANDIN_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. typedef float vec_t;
  12. typedef float vec3_t[3];
  13. typedef unsigned char byte;
  14. typedef int qboolean;
  15. void Msg( PRINTF_FORMAT_STRING const char *pMsg, ... );
  16. void Warning( PRINTF_FORMAT_STRING const char *pMsg, ... );
  17. void Error( PRINTF_FORMAT_STRING const char *pMsg, ... );
  18. int LoadFile (char *filename, void **bufferptr);
  19. void SaveFile (char *filename, void *buffer, int count);
  20. short BigShort (short l);
  21. short LittleShort (short l);
  22. int BigLong (int l);
  23. int LittleLong (int l);
  24. float BigFloat (float l);
  25. float LittleFloat (float l);
  26. FILE *SafeOpenWrite (char *filename);
  27. FILE *SafeOpenRead (char *filename);
  28. void SafeRead (FILE *f, void *buffer, int count);
  29. void SafeWrite (FILE *f, void *buffer, int count);
  30. #endif // GOLDSRC_STANDIN_H