Fixed various missing files

This commit is contained in:
Joe Ludwig
2013-06-27 14:27:15 -07:00
parent 39ed87570b
commit 949bd75a99
24 changed files with 1637 additions and 192 deletions

View File

@@ -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 );

View File

@@ -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";
}