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.

48 lines
1.9 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. void GetYouTubeAPIKey( const char *pGameDir, bool bOnSteamPublic, const char **ppSource, const char **ppDeveloperTag, const char **ppDeveloperKey )
  8. {
  9. // Team Fortress 2?
  10. if ( FStrEq( pGameDir, "tf" ) )
  11. {
  12. *ppSource = "Team Fortress 2";
  13. *ppDeveloperTag = "TF2";
  14. *ppDeveloperKey = bOnSteamPublic ?
  15. "AI39si6dQGxX2TWkOT9V9ihFpKmokaDhqIw3mgJcnnRFjX5f00HMRXqj69Fg1ulTdYF9Aw4wIt5NYHCxQAXHPPEcbQ89rEaCeg" :
  16. "AI39si5q3V-l7DhNbdSn-F2P3l0sUOIOnHBqJC5kvdGsuwpIinmcOH5GFC1PGG0olcZM2ID0Fvbsodj6g0pOUkKhuRNxcEErLQ";
  17. }
  18. // Team Fortress 2 Beta?
  19. else if ( FStrEq( pGameDir, "tf_beta" ) )
  20. {
  21. *ppSource = "Team Fortress 2 Beta";
  22. *ppDeveloperTag = "TF2";
  23. *ppDeveloperKey = bOnSteamPublic ?
  24. "AI39si7XuLuXg3-2T06aVUaM-45HSXYFqzXfyPR6y5K4XotWKf78lfCByXnD1T8Kj9jeIR85NelpjGYGsH8pR3RO4k3TrwlTbw" :
  25. "AI39si79TOshUv9FcIT6cjEH0Q9KK_eEOH1q6-_lIdNIsmHrKcal1R8Uf0TzMhdq-rQ7iUEZ3uqSKlLXa2J-lQvuKwNq5SSnMA";
  26. }
  27. // Counter-Strike: Source?
  28. else if ( FStrEq( pGameDir, "cstrike" ) )
  29. {
  30. *ppSource = "Counter-Strike: Source";
  31. *ppDeveloperTag = "CSS";
  32. *ppDeveloperKey = bOnSteamPublic ?
  33. "AI39si7JIn2nj67YoxWPzmsGHO2R-WSpN0su1f3-BF9lVC5jWz9DEOPbOxFz-MiXuaMtoCZnS3nSPjwGfqHenXC6RKGcICI5HQ" :
  34. "AI39si4bpW1q3D0gcWWNWFNHjHgsM7YL3RGCdEAIKV2k_mH5Cwj-YwXinVv933tFhy-6583HcuZ8NWTrvfbB8XTWEI-hYidEjA";
  35. }
  36. // Counter-Strike: Source Beta?
  37. else if ( FStrEq( pGameDir, "cstrike_beta" ) )
  38. {
  39. *ppSource = "Counter-Strike: Source Beta";
  40. *ppDeveloperTag = "CSS";
  41. *ppDeveloperKey = bOnSteamPublic ?
  42. "AI39si5JUyCvGdavFg02OusWk9lkSxkpEX99KnJCjTwOzLJH7N9MS40YMFk-o8dTwyO0w2Qi2CSU8qrB4bdTohHj35mAa0iMDQ" :
  43. "AI39si4Oq2O35MHD5qahqODCKQfsssq5STE6ISolJKsvFuxtPpqhG4sQbDF8pGdZ02c-_s5KRB5nhTjqZMLB4h0lKKHh8I52Tg";
  44. }
  45. }