mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-13 07:08:05 +03:00
Remove uint from InitFilterText call
FilterText now returns the filtered string instead of the number of filtered characters
This commit is contained in:
parent
bc6600736c
commit
4a06c64ded
@ -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
|
||||
/// </summary>
|
||||
public static bool InitFilterText( uint unFilterOptions ) => Internal.InitFilterText( unFilterOptions );
|
||||
public static bool InitFilterText() => Internal.InitFilterText( 0 );
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user