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.

31 lines
717 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Xbox console link
  4. //
  5. //=====================================================================================//
  6. #include "pch_tier0.h"
  7. #include "xbox/xbox_console.h"
  8. #include "tier0/memdbgon.h"
  9. IXboxConsole *g_pXboxConsole;
  10. typedef IXboxConsole * (WINAPI *CONSOLEINTERFACEFUNC)( void );
  11. void XboxConsoleInit()
  12. {
  13. g_pXboxConsole = NULL;
  14. HMODULE hDLL = ::LoadLibrary( "vxbdm_360.dll" );
  15. if ( !hDLL )
  16. {
  17. return;
  18. }
  19. CONSOLEINTERFACEFUNC fpnGetConsoleInterface = (CONSOLEINTERFACEFUNC) ::GetProcAddress( hDLL, "GetConsoleInterface" );
  20. if ( fpnGetConsoleInterface )
  21. {
  22. g_pXboxConsole = fpnGetConsoleInterface();
  23. }
  24. }