aboutsummaryrefslogtreecommitdiff
path: root/mp/src/common/replay/replayutils.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/common/replay/replayutils.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/common/replay/replayutils.h')
-rw-r--r--mp/src/common/replay/replayutils.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/mp/src/common/replay/replayutils.h b/mp/src/common/replay/replayutils.h
new file mode 100644
index 00000000..97e011c2
--- /dev/null
+++ b/mp/src/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