mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-07-15 01:36:18 +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.
|
/// 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
|
/// Users can customize the text filter behavior in their Steam Account preferences
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool InitFilterText( uint unFilterOptions ) => Internal.InitFilterText( unFilterOptions );
|
public static bool InitFilterText() => Internal.InitFilterText( 0 );
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Filters the provided input message and places the filtered result into pchOutFilteredText,
|
/// 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.
|
/// using legally required filtering and additional filtering based on the context and user settings.
|
||||||
/// </summary>
|
/// </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