Counter Strike : Global Offensive Source Code
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.

60 lines
1.8 KiB

  1. //========= Copyright � 1996-2005, 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. // sys.h -- non-portable functions
  15. //
  16. // system IO
  17. //
  18. void Sys_mkdir (const char *path, const char *pPathID = 0 );
  19. int Sys_CompareFileTime(long ft1, long ft2);
  20. char const* Sys_FindFirst(const char *path, char *basename, int namelength );
  21. char const* Sys_FindNext(char *basename, int namelength);
  22. void Sys_FindClose (void);
  23. // Takes a path ID filter
  24. char const* Sys_FindFirstEx( const char *pWildcard, const char *pPathID, char *basename, int namelength );
  25. void Sys_ShutdownMemory( void );
  26. void Sys_InitMemory( void );
  27. void Sys_LoadHLTVDLL( void );
  28. void Sys_UnloadHLTVDLL( void );
  29. void Sys_Sleep ( int msec );
  30. void Sys_GetRegKeyValue( char *pszSubKey, char *pszElement, char *pszReturnString, int nReturnLength, char *pszDefaultValue);
  31. void Sys_GetRegKeyValueInt( char *pszSubKey, char *pszElement, long *pulReturnValue, long dwDefaultValue);
  32. void Sys_SetRegKeyValue( char *pszSubKey, char *pszElement, const char *pszValue );
  33. extern "C" void Sys_SetFPCW (void);
  34. extern "C" void Sys_TruncateFPU( void );
  35. //-----------------------------------------------------------------------------
  36. // Purpose:
  37. //-----------------------------------------------------------------------------
  38. struct FileAssociationInfo
  39. {
  40. char const *extension;
  41. char const *command_to_issue;
  42. };
  43. void Sys_CreateFileAssociations( int count, FileAssociationInfo *list );
  44. // disables the system crash dialogs on windows, stub otherwise
  45. void Sys_NoCrashDialog();
  46. void Sys_TestSendKey( const char *pKey );
  47. void Sys_OutputDebugString(const char *msg);
  48. #endif // SYS_H