From 2a2ca9a0d223eba52cf192e831c477e5d7ff7a3e Mon Sep 17 00:00:00 2001 From: Joshua Date: Mon, 24 Apr 2023 15:38:54 -0400 Subject: [PATCH] Mac filter text now only has the 5 parameter version. --- .../Private/AdvancedSteamFriendsLibrary.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp b/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp index 10620db..91f822e 100644 --- a/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp +++ b/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp @@ -399,18 +399,7 @@ bool UAdvancedSteamFriendsLibrary::FilterText(FString TextToFilter, EBPTextFilte id = *((uint64*)TextSourceID.UniqueNetId->GetBytes()); } - // MAC is bugged with current steam version according to epic, they forced it to be the old steam ver -#if PLATFORM_MAC - // Filters the provided input message and places the filtered result into pchOutFilteredText. - // pchOutFilteredText is where the output will be placed, even if no filtering or censoring is performed - // nByteSizeOutFilteredText is the size (in bytes) of pchOutFilteredText - // pchInputText is the input string that should be filtered, which can be ASCII or UTF-8 - // bLegalOnly should be false if you want profanity and legally required filtering (where required) and true if you want legally required filtering only - // Returns the number of characters (not bytes) filtered. - int FilterCount = SteamUtils()->FilterText(OutText, BufferLen, TCHAR_TO_ANSI(*TextToFilter), Context == EBPTextFilteringContext::FContext_GameContent); -#else int FilterCount = SteamUtils()->FilterText((ETextFilteringContext)Context, id, TCHAR_TO_ANSI(*TextToFilter), OutText, BufferLen); -#endif if (FilterCount > 0) {