From 2fb54ad8c4ab52193ef147e1086485ec1ee7bf17 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 1 Apr 2023 22:58:43 +0200 Subject: [PATCH] Guard 'IsValidPersonaName' out for client.dll Don't compile 'IsValidPersonaName' for client.dll. --- r5dev/ebisusdk/EbisuSDK.cpp | 2 ++ r5dev/ebisusdk/EbisuSDK.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/r5dev/ebisusdk/EbisuSDK.cpp b/r5dev/ebisusdk/EbisuSDK.cpp index 0872b012..b02efb28 100644 --- a/r5dev/ebisusdk/EbisuSDK.cpp +++ b/r5dev/ebisusdk/EbisuSDK.cpp @@ -34,6 +34,7 @@ bool IsOriginInitialized() return false; } +#ifndef CLIENT_DLL //----------------------------------------------------------------------------- // Purpose: validates if client's persona name meets EA's criteria // Input : *pszName - @@ -58,3 +59,4 @@ bool IsValidPersonaName(const char* pszName) size_t pos = strspn(pszName, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_"); return pszName[pos] == '\0'; } +#endif // !CLIENT_DLL diff --git a/r5dev/ebisusdk/EbisuSDK.h b/r5dev/ebisusdk/EbisuSDK.h index e3396fc0..0e8595b5 100644 --- a/r5dev/ebisusdk/EbisuSDK.h +++ b/r5dev/ebisusdk/EbisuSDK.h @@ -23,7 +23,9 @@ inline bool* g_EbisuProfileInit = nullptr; /////////////////////////////////////////////////////////////////////////////// void HEbisuSDK_Init(); bool IsOriginInitialized(); +#ifndef CLIENT_DLL bool IsValidPersonaName(const char* pszName); +#endif // !CLIENT_DLL /////////////////////////////////////////////////////////////////////////////// class VEbisuSDK : public IDetour