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.

73 lines
2.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef SHARED_DEFS_H
  5. #define SHARED_DEFS_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. #include "platform.h"
  11. //----------------------------------------------------------------------------------------
  12. #define SUBDIR_REPLAY "replay"
  13. #define SUBDIR_REPLAYS "replays"
  14. #define SUBDIR_SESSIONS "sessions"
  15. #define SUBDIR_BLOCKS "blocks"
  16. #define SUBDIR_CLIENT "client"
  17. #define SUBDIR_MOVIES "movies"
  18. #define SUBDIR_PERFORMANCES "edits"
  19. #define SUBDIR_SERVER "server"
  20. #define SUBDIR_RENDERED "rendered"
  21. #define SUBDIR_TMP "tmp"
  22. //----------------------------------------------------------------------------------------
  23. #define BLOCK_FILE_EXTENSION "block"
  24. #define GENERIC_FILE_EXTENSION "dmx"
  25. #define DEMO_FILE_EXTENSION "dem"
  26. //----------------------------------------------------------------------------------------
  27. #define MOVIE_HANDLE_BASE 10000 // 10,000
  28. //----------------------------------------------------------------------------------------
  29. #define BUILD_CURL ( defined( WIN32 ) && _MSC_VER < 1900 && !defined( _X360 ) ) || defined( POSIX )
  30. //----------------------------------------------------------------------------------------
  31. #define MIN_SERVER_DUMP_INTERVAL 10
  32. #define MAX_SERVER_DUMP_INTERVAL 30
  33. #define DOWNLOAD_TIMEOUT_THRESHOLD 90 // Timeout for a replay download - if no blocks
  34. // are added or updated after this many seconds,
  35. // the replay will be put in the error state.
  36. //----------------------------------------------------------------------------------------
  37. #define MAX_TIMES_TO_SHOW_REPLAY_WELCOME_DLG 1
  38. //----------------------------------------------------------------------------------------
  39. #define MAX_SESSIONNAME_LENGTH 260
  40. #define MAX_REPLAY_TITLE_LENGTH 256
  41. #define MAX_TAKE_TITLE_LENGTH 256
  42. //----------------------------------------------------------------------------------------
  43. #define DEFAULT_COMPRESSOR_TYPE COMPRESSORTYPE_BZ2
  44. //----------------------------------------------------------------------------------------
  45. #define JOB_FAILED ( (JobStatus_t) -1 )
  46. #define DOWNLOAD_MAX_SIZE ( 8 * 1024 * 1024 ) // 8 MB
  47. //----------------------------------------------------------------------------------------
  48. #endif // SHARED_DEFS_H