Counter Strike : Global Offensive Source Code
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
732 B

  1. //========= Copyright � 1996-2005, 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( "game:\\bin\\vxbdm_360.dll" );
  15. if ( !hDLL )
  16. {
  17. return;
  18. }
  19. CONSOLEINTERFACEFUNC fpnGetConsoleInterface = (CONSOLEINTERFACEFUNC) ::GetProcAddress( hDLL, (LPSTR)1 );
  20. if ( fpnGetConsoleInterface )
  21. {
  22. g_pXboxConsole = fpnGetConsoleInterface();
  23. }
  24. }