From 59eeec656a04aacf2092a5fc4457482f5320d084 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 8 Jul 2022 23:50:38 +0200 Subject: [PATCH] Guard RTech::CreateDXTexture out for S0/S1 --- r5dev/rtech/rtech_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/rtech/rtech_utils.cpp b/r5dev/rtech/rtech_utils.cpp index ac6257ec..393a1beb 100644 --- a/r5dev/rtech/rtech_utils.cpp +++ b/r5dev/rtech/rtech_utils.cpp @@ -650,14 +650,14 @@ RPakLoadedInfo_t* RTech::GetPakLoadedInfo(const char* szPakName) void RTech_Utils_Attach() { -#ifndef DEDICATED +#if not defined DEDICATED && defined (GAMEDLL_S3) DetourAttach((LPVOID*)&RTech_CreateDXTexture, &RTech::CreateDXTexture); #endif } void RTech_Utils_Detach() { -#ifndef DEDICATED +#if not defined DEDICATED && defined (GAMEDLL_S3) DetourDetach((LPVOID*)&RTech_CreateDXTexture, &RTech::CreateDXTexture); #endif }