From 4a06c64deda87e57ac6ce4f8874aa08ad8466331 Mon Sep 17 00:00:00 2001 From: Koen Mulder Date: Sat, 9 Jan 2021 14:05:56 +0100 Subject: [PATCH] Remove uint from InitFilterText call FilterText now returns the filtered string instead of the number of filtered characters --- Facepunch.Steamworks/SteamUtils.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Facepunch.Steamworks/SteamUtils.cs b/Facepunch.Steamworks/SteamUtils.cs index a6fe436..8ca3f83 100644 --- a/Facepunch.Steamworks/SteamUtils.cs +++ b/Facepunch.Steamworks/SteamUtils.cs @@ -266,15 +266,16 @@ namespace Steamworks /// Initializes text filtering, loading dictionaries for the language the game is running in. /// Users can customize the text filter behavior in their Steam Account preferences /// - public static bool InitFilterText( uint unFilterOptions ) => Internal.InitFilterText( unFilterOptions ); + public static bool InitFilterText() => Internal.InitFilterText( 0 ); /// /// Filters the provided input message and places the filtered result into pchOutFilteredText, /// using legally required filtering and additional filtering based on the context and user settings. /// - public int FilterText( TextFilteringContext eContext, SteamId sourceSteamID, string pchInputMessage, out string pchOutFilteredText ) + public string FilterText( TextFilteringContext context, SteamId sourceSteamID, string inputMessage ) { - return Internal.FilterText( eContext, sourceSteamID, pchInputMessage, out pchOutFilteredText ); + Internal.FilterText( context, sourceSteamID, inputMessage, out var filteredString ); + return filteredString; } } } \ No newline at end of file