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.

45 lines
1.1 KiB

  1. #include "CegClientWrapper.h"
  2. #if defined( CLIENT_DLL ) || defined( GAME_DLL ) // shared
  3. #include "cbase.h" // prerequisite for more than one of the below headers
  4. #include "bspflags.h" // defines SURF_NOPORTAL and SURF_NOPAINT
  5. #if defined ( CSTRIKE15 )
  6. #endif // defined CSTRIKE15
  7. #endif // defined CLIENT_DLL or GAME_DLL
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. #if defined( PROFILE_CEG )
  11. CAverageCycleCounter allCEG;
  12. CAverageCycleCounter allTestSecret;
  13. CAverageCycleCounter allSelfCheck;
  14. CAverageCycleCounter allProtectMember;
  15. CAverageCycleCounter allProtectVirtual;
  16. #endif // defined( PROFILE_CEG )
  17. #if defined( CLIENT_DLL ) // client-side only
  18. void Init_GCVs()
  19. {
  20. // function calls to prime statics and ensure CEG init hitches happen before game is interactive
  21. InitHudAllowTextChatFlag();
  22. InitUiAllowProperTintFlag();
  23. }
  24. CEG_DEFINE_CONSTANT_FUNCTION( HudAllowTextChatFlag, ALLOW_TEXTCHAT_FLAG );
  25. CEG_DEFINE_CONSTANT_FUNCTION( UiAllowProperTintFlag, ALLOW_PROPER_TINT_FLAG );
  26. #elif defined( GAME_DLL ) // server-side only
  27. void Init_GCVs()
  28. {
  29. }
  30. #endif // defined( GAME_DLL )