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.

38 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: This is temporary obfuscation code to verify that a base shader
  4. // DLL comes from us (because it includes some interfaces that we don't
  5. // give out with the SDK).
  6. //
  7. //=============================================================================
  8. #ifndef SHADER_DLL_VERIFY_H
  9. #define SHADER_DLL_VERIFY_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "tier0/platform.h"
  14. #include "tier1/checksum_crc.h"
  15. #include "tier1/checksum_md5.h"
  16. #define SHADER_DLL_VERIFY_DATA_LEN1 4101
  17. #define SHADER_DLL_VERIFY_DATA_PTR_OFFSET 43
  18. #define SHADER_DLL_FNNAME_1 "_ftol3"
  19. typedef void (*ShaderDLLVerifyFn)( char *pData );
  20. abstract_class IShaderDLLVerification
  21. {
  22. public:
  23. virtual CRC32_t Function1( unsigned char *pData ) = 0;
  24. virtual void Function2( int a, int b, int c ) = 0;
  25. virtual void Function3( int a, int b, int c ) = 0;
  26. virtual void Function4( int a, int b, int c ) = 0;
  27. virtual CRC32_t Function5() = 0;
  28. };
  29. #endif // SHADER_DLL_VERIFY_H