Added Client.CurrentCountry

This commit is contained in:
André Straubmeier 2019-03-04 15:55:42 +01:00
parent 0b55f13306
commit 879a284de3

View File

@ -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