summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/materialsystem_config.cpp
blob: 102d09b5a928ee8e17cd59374e0ce054cf5663d6 (plain)
1
2
3
4
5
6
7
8
9
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 );
}