summaryrefslogtreecommitdiff
path: root/common/replay/replayutils.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/replay/replayutils.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/replay/replayutils.h')
-rw-r--r--common/replay/replayutils.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/common/replay/replayutils.h b/common/replay/replayutils.h
new file mode 100644
index 0000000..0add85a
--- /dev/null
+++ b/common/replay/replayutils.h
@@ -0,0 +1,43 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+//----------------------------------------------------------------------------------------
+
+#ifndef REPLAYUTILS_H
+#define REPLAYUTILS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "utlstring.h"
+
+void Replay_GetFirstAvailableFilename( char *pDst, int nDstLen, const char *pIdealFilename, const char *pExt,
+ const char *pFilePath, int nStartIndex );
+
+void Replay_ConstructReplayFilenameString( CUtlString &strOut, const char *pReplaySubDir, const char *pFilename, const char *pGameDir );
+
+//----------------------------------------------------------------------------------------
+// Util function, copied from src/engine/common.cpp
+//----------------------------------------------------------------------------------------
+char *Replay_va( PRINTF_FORMAT_STRING const char *format, ... );
+
+//----------------------------------------------------------------------------------------
+// Return the base dir, e.g. "c:\...\game\tf\replays\"
+//----------------------------------------------------------------------------------------
+const char *Replay_GetBaseDir();
+
+//----------------------------------------------------------------------------------------
+// Set the game directory (only to be called from ReplayLib_Init())
+//----------------------------------------------------------------------------------------
+void Replay_SetGameDir( const char *pGameDir );
+
+//----------------------------------------------------------------------------------------
+// Return the base dir, e.g. "c:\...\game\tf\replays\"
+//----------------------------------------------------------------------------------------
+const char *Replay_GetGameDir();
+
+//----------------------------------------------------------------------------------------
+// Get a name of the format "<map>: <current date & time>" - used for replays and takes.
+//----------------------------------------------------------------------------------------
+void Replay_GetAutoName( OUT_Z_BYTECAP(nDestSizeInBytes) wchar_t *pDest, int nDestSizeInBytes, const char *pMapName );
+
+#endif // REPLAY_H