summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/materialsystem_config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/internal_rewrite/materialsystem_config.cpp')
-rw-r--r--cheat/internal_rewrite/materialsystem_config.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cheat/internal_rewrite/materialsystem_config.cpp b/cheat/internal_rewrite/materialsystem_config.cpp
new file mode 100644
index 0000000..102d09b
--- /dev/null
+++ b/cheat/internal_rewrite/materialsystem_config.cpp
@@ -0,0 +1,10 @@
+#include "hooks.hpp"
+#include "settings.hpp"
+
+bool __fastcall hooks::material_system( void* ecx, void* edx, IMaterialSystem_Config_t* config, bool forceupdate ) {
+ static auto original_fn = material_system_o;
+
+ config->m_fullbright = g_settings.visuals.fullbright( );
+
+ return original_fn( ecx, edx, config, forceupdate );
+}