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
963 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. /*
  9. ===== h_export.cpp ========================================================
  10. Entity classes exported by Halflife.
  11. */
  12. #if defined(_WIN32) && !defined(_XBOX)
  13. #include "winlite.h"
  14. #include "datamap.h"
  15. #include "tier0/dbg.h"
  16. // memdbgon must be the last include file in a .cpp file!!!
  17. #include "tier0/memdbgon.h"
  18. HMODULE win32DLLHandle;
  19. // Required DLL entry point
  20. BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
  21. {
  22. // ensure data sizes are stable
  23. if ( sizeof(inputfunc_t) != sizeof(int) )
  24. {
  25. Assert( sizeof(inputfunc_t) == sizeof(int) );
  26. return FALSE;
  27. }
  28. if ( fdwReason == DLL_PROCESS_ATTACH )
  29. {
  30. win32DLLHandle = hinstDLL;
  31. }
  32. else if ( fdwReason == DLL_PROCESS_DETACH )
  33. {
  34. }
  35. return TRUE;
  36. }
  37. #endif