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.

35 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // SYS_UTILS.H
  4. //
  5. // System Utilities.
  6. //=====================================================================================//
  7. #pragma once
  8. #include <windows.h>
  9. #include <stdio.h>
  10. #include <stdarg.h>
  11. #include <string.h>
  12. #define MAX_SYSTOKENCHARS 1024
  13. extern void Sys_NormalizePath( CHAR *path, bool forceToLower );
  14. extern CHAR* Sys_PeekToken( CHAR *dataptr, BOOL bAllowLineBreaks );
  15. extern CHAR *Sys_GetToken( CHAR **dataptr, BOOL crossline, int *numlines );
  16. extern CHAR *Sys_SkipWhitespace( CHAR *data, BOOL *hasNewLines, int *numlines );
  17. extern void Sys_SkipBracedSection( CHAR **dataptr, int *numlines );
  18. extern void Sys_SkipRestOfLine( CHAR **dataptr, int *numlines );
  19. extern void Sys_StripQuotesFromToken( CHAR *pToken );
  20. extern BOOL Sys_SetRegistryString( const CHAR *key, const CHAR *value );
  21. extern BOOL Sys_GetRegistryString( const CHAR *key, CHAR *value, const CHAR *defValue, int valueLen );
  22. extern BOOL Sys_SetRegistryInteger( const CHAR *key, int value );
  23. extern BOOL Sys_GetRegistryInteger( const CHAR *key, int defValue, int &value );