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.

64 lines
1.9 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef SYS_H
  9. #define SYS_H
  10. #pragma once
  11. #ifndef SYSEXTERNAL_H
  12. #include "sysexternal.h"
  13. #endif
  14. #include "tier0/annotations.h"
  15. // sys.h -- non-portable functions
  16. //
  17. // system IO
  18. //
  19. void Sys_mkdir (const char *path);
  20. int Sys_CompareFileTime(long ft1, long ft2);
  21. char const* Sys_FindFirst(const char *path, char *basename, int namelength );
  22. char const* Sys_FindNext(char *basename, int namelength);
  23. void Sys_FindClose (void);
  24. // Takes a path ID filter
  25. char const* Sys_FindFirstEx( const char *pWildcard, const char *pPathID, char *basename, int namelength );
  26. void Sys_ShutdownMemory( void );
  27. void Sys_InitMemory( void );
  28. void Sys_LoadHLTVDLL( void );
  29. void Sys_UnloadHLTVDLL( void );
  30. void Sys_Sleep ( int msec );
  31. void Sys_GetRegKeyValue( const char *pszSubKey, const char *pszElement, OUT_Z_CAP(nReturnLength) char *pszReturnString, int nReturnLength, const char *pszDefaultValue);
  32. void Sys_GetRegKeyValueInt( const char *pszSubKey, const char *pszElement, long *pulReturnValue, long dwDefaultValue);
  33. void Sys_SetRegKeyValue( const char *pszSubKey, const char *pszElement, const char *pszValue );
  34. extern "C" void Sys_SetFPCW (void);
  35. extern "C" void Sys_TruncateFPU( void );
  36. //-----------------------------------------------------------------------------
  37. // Purpose:
  38. //-----------------------------------------------------------------------------
  39. struct FileAssociationInfo
  40. {
  41. char const *extension;
  42. char const *command_to_issue;
  43. };
  44. void Sys_CreateFileAssociations( int count, FileAssociationInfo *list );
  45. // disables the system crash dialogs on windows, stub otherwise
  46. void Sys_NoCrashDialog();
  47. void Sys_TestSendKey( const char *pKey );
  48. void Sys_OutputDebugString(const char *msg);
  49. void Sys_SetSteamAppID( unsigned int unAppID );
  50. #endif // SYS_H