mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-24 05:35:35 +03:00
Added Client.CurrentCountry
This commit is contained in:
parent
0b55f13306
commit
879a284de3
@ -42,6 +42,11 @@ public partial class Client : BaseSteamworks
|
||||
public DirectoryInfo InstallFolder { get; private set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The 2 digit ISO 3166-1-alpha-2 format country code (e.g. "US" or "UK")
|
||||
/// </summary>
|
||||
public string CurrentCountry { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The currently selected language
|
||||
/// </summary>
|
||||
@ -128,6 +133,7 @@ public Client( uint appId ) : base( appId )
|
||||
InstallFolder = new DirectoryInfo(appInstallDir);
|
||||
|
||||
BuildId = native.apps.GetAppBuildId();
|
||||
CurrentCountry = native.utils.GetIPCountry();
|
||||
CurrentLanguage = native.apps.GetCurrentGameLanguage();
|
||||
AvailableLanguages = native.apps.GetAvailableGameLanguages().Split( new[] {';'}, StringSplitOptions.RemoveEmptyEntries ); // TODO: Assumed colon separated
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user