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.

43 lines
2.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //----------------------------------------------------------------------------------------
  4. #ifndef REPLAYUTILS_H
  5. #define REPLAYUTILS_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. #include "utlstring.h"
  10. void Replay_GetFirstAvailableFilename( char *pDst, int nDstLen, const char *pIdealFilename, const char *pExt,
  11. const char *pFilePath, int nStartIndex );
  12. void Replay_ConstructReplayFilenameString( CUtlString &strOut, const char *pReplaySubDir, const char *pFilename, const char *pGameDir );
  13. //----------------------------------------------------------------------------------------
  14. // Util function, copied from src/engine/common.cpp
  15. //----------------------------------------------------------------------------------------
  16. char *Replay_va( PRINTF_FORMAT_STRING const char *format, ... );
  17. //----------------------------------------------------------------------------------------
  18. // Return the base dir, e.g. "c:\...\game\tf\replays\"
  19. //----------------------------------------------------------------------------------------
  20. const char *Replay_GetBaseDir();
  21. //----------------------------------------------------------------------------------------
  22. // Set the game directory (only to be called from ReplayLib_Init())
  23. //----------------------------------------------------------------------------------------
  24. void Replay_SetGameDir( const char *pGameDir );
  25. //----------------------------------------------------------------------------------------
  26. // Return the base dir, e.g. "c:\...\game\tf\replays\"
  27. //----------------------------------------------------------------------------------------
  28. const char *Replay_GetGameDir();
  29. //----------------------------------------------------------------------------------------
  30. // Get a name of the format "<map>: <current date & time>" - used for replays and takes.
  31. //----------------------------------------------------------------------------------------
  32. void Replay_GetAutoName( OUT_Z_BYTECAP(nDestSizeInBytes) wchar_t *pDest, int nDestSizeInBytes, const char *pMapName );
  33. #endif // REPLAY_H