summaryrefslogtreecommitdiff
path: root/materialsystem/shader_dll_verify.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /materialsystem/shader_dll_verify.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'materialsystem/shader_dll_verify.h')
-rw-r--r--materialsystem/shader_dll_verify.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/materialsystem/shader_dll_verify.h b/materialsystem/shader_dll_verify.h
new file mode 100644
index 0000000..daefe9f
--- /dev/null
+++ b/materialsystem/shader_dll_verify.h
@@ -0,0 +1,38 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: This is temporary obfuscation code to verify that a base shader
+// DLL comes from us (because it includes some interfaces that we don't
+// give out with the SDK).
+//
+//=============================================================================
+
+#ifndef SHADER_DLL_VERIFY_H
+#define SHADER_DLL_VERIFY_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "tier0/platform.h"
+#include "tier1/checksum_crc.h"
+#include "tier1/checksum_md5.h"
+
+
+#define SHADER_DLL_VERIFY_DATA_LEN1 4101
+#define SHADER_DLL_VERIFY_DATA_PTR_OFFSET 43
+
+#define SHADER_DLL_FNNAME_1 "_ftol3"
+typedef void (*ShaderDLLVerifyFn)( char *pData );
+
+abstract_class IShaderDLLVerification
+{
+public:
+
+ virtual CRC32_t Function1( unsigned char *pData ) = 0;
+ virtual void Function2( int a, int b, int c ) = 0;
+ virtual void Function3( int a, int b, int c ) = 0;
+ virtual void Function4( int a, int b, int c ) = 0;
+ virtual CRC32_t Function5() = 0;
+};
+
+
+#endif // SHADER_DLL_VERIFY_H