/* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #include // Changes: // - 2021/2/23: use TLS touched class to automatically initialize TLS. // - 2021/2/24: Lowered necessary TLS pool size for Fallout4 and SkyrimSE. #define DECLARE_TLS_VARS(i) __declspec(thread) uint8_t tls[sizeof(int) * i] DECLARE_TLS_VARS(7096); #include struct TlsToucher { TlsToucher() { *reinterpret_cast(&tls[4]) = static_cast(GetTickCount64()); } }; TlsToucher toucher;