diff options
| author | Joe Ludwig <[email protected]> | 2013-06-27 14:27:15 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-27 14:27:15 -0700 |
| commit | 949bd75a99c20c87c82ccd8bcd271800dd7eaf4b (patch) | |
| tree | ad5b1fb8fa57689bf2bf39f4d63fd72a0263f921 /mp/src/game | |
| parent | First version of the SOurce SDK 2013 (diff) | |
| download | source-sdk-2013-949bd75a99c20c87c82ccd8bcd271800dd7eaf4b.tar.xz source-sdk-2013-949bd75a99c20c87c82ccd8bcd271800dd7eaf4b.zip | |
Fixed various missing files
Diffstat (limited to 'mp/src/game')
| -rw-r--r-- | mp/src/game/client/replay/replayyoutubeapi.cpp | 40 | ||||
| -rw-r--r-- | mp/src/game/client/replay/replayyoutubeapi_key_sdk.cpp | 16 |
2 files changed, 20 insertions, 36 deletions
diff --git a/mp/src/game/client/replay/replayyoutubeapi.cpp b/mp/src/game/client/replay/replayyoutubeapi.cpp index 649416b8..e39d5dcb 100644 --- a/mp/src/game/client/replay/replayyoutubeapi.cpp +++ b/mp/src/game/client/replay/replayyoutubeapi.cpp @@ -43,6 +43,9 @@ static ConVar youtube_username( "youtube_username", "", FCVAR_ARCHIVE, "Username extern IReplayMovieManager *g_pReplayMovieManager;
extern const char *COM_GetModDirectory();
+extern void GetYouTubeAPIKey( const char *pGameDir, bool bOnSteamPublic, const char **ppSource, const char **ppDeveloperTag, const char **ppDeveloperKey );
+
+
//-----------------------------------------------------------------------------
@@ -385,42 +388,7 @@ protected: const char *pDeveloperTag = NULL;
const char *pDeveloperKey = NULL;
- // Team Fortress 2?
- if ( FStrEq( pGameDir, "tf" ) )
- {
- pSource = "Team Fortress 2";
- pDeveloperTag = "TF2";
- pDeveloperKey = bOnSteamPublic ?
- "AI39si6dQGxX2TWkOT9V9ihFpKmokaDhqIw3mgJcnnRFjX5f00HMRXqj69Fg1ulTdYF9Aw4wIt5NYHCxQAXHPPEcbQ89rEaCeg" :
- "AI39si5q3V-l7DhNbdSn-F2P3l0sUOIOnHBqJC5kvdGsuwpIinmcOH5GFC1PGG0olcZM2ID0Fvbsodj6g0pOUkKhuRNxcEErLQ";
- }
- // Team Fortress 2 Beta?
- else if ( FStrEq( pGameDir, "tf_beta" ) )
- {
- pSource = "Team Fortress 2 Beta";
- pDeveloperTag = "TF2";
- pDeveloperKey = bOnSteamPublic ?
- "AI39si7XuLuXg3-2T06aVUaM-45HSXYFqzXfyPR6y5K4XotWKf78lfCByXnD1T8Kj9jeIR85NelpjGYGsH8pR3RO4k3TrwlTbw" :
- "AI39si79TOshUv9FcIT6cjEH0Q9KK_eEOH1q6-_lIdNIsmHrKcal1R8Uf0TzMhdq-rQ7iUEZ3uqSKlLXa2J-lQvuKwNq5SSnMA";
- }
- // Counter-Strike: Source?
- else if ( FStrEq( pGameDir, "cstrike" ) )
- {
- pSource = "Counter-Strike: Source";
- pDeveloperTag = "CSS";
- pDeveloperKey = bOnSteamPublic ?
- "AI39si7JIn2nj67YoxWPzmsGHO2R-WSpN0su1f3-BF9lVC5jWz9DEOPbOxFz-MiXuaMtoCZnS3nSPjwGfqHenXC6RKGcICI5HQ" :
- "AI39si4bpW1q3D0gcWWNWFNHjHgsM7YL3RGCdEAIKV2k_mH5Cwj-YwXinVv933tFhy-6583HcuZ8NWTrvfbB8XTWEI-hYidEjA";
- }
- // Counter-Strike: Source Beta?
- else if ( FStrEq( pGameDir, "cstrike_beta" ) )
- {
- pSource = "Counter-Strike: Source Beta";
- pDeveloperTag = "CSS";
- pDeveloperKey = bOnSteamPublic ?
- "AI39si5JUyCvGdavFg02OusWk9lkSxkpEX99KnJCjTwOzLJH7N9MS40YMFk-o8dTwyO0w2Qi2CSU8qrB4bdTohHj35mAa0iMDQ" :
- "AI39si4Oq2O35MHD5qahqODCKQfsssq5STE6ISolJKsvFuxtPpqhG4sQbDF8pGdZ02c-_s5KRB5nhTjqZMLB4h0lKKHh8I52Tg";
- }
+ GetYouTubeAPIKey( pGameDir, bOnSteamPublic, &pSource, &pDeveloperTag, &pDeveloperKey );
Assert( pSource );
Assert( pDeveloperTag );
diff --git a/mp/src/game/client/replay/replayyoutubeapi_key_sdk.cpp b/mp/src/game/client/replay/replayyoutubeapi_key_sdk.cpp new file mode 100644 index 00000000..ba113f88 --- /dev/null +++ b/mp/src/game/client/replay/replayyoutubeapi_key_sdk.cpp @@ -0,0 +1,16 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#include "cbase.h"
+
+
+void GetYouTubeAPIKey( const char *pGameDir, bool bOnSteamPublic, const char **ppSource, const char **ppDeveloperTag, const char **ppDeveloperKey )
+{
+ // Put your YouTube Developer key here if you're going to upload videos to YouTube
+ *ppSource = "your Mod Name";
+ *ppDeveloperTag = "Your mod tag";
+ *ppDeveloperKey = "Your mod's developer key";
+}
|