diff --git a/Facepunch.Steamworks/Client.cs b/Facepunch.Steamworks/Client.cs index f976692..f55e158 100644 --- a/Facepunch.Steamworks/Client.cs +++ b/Facepunch.Steamworks/Client.cs @@ -42,6 +42,11 @@ public partial class Client : BaseSteamworks public DirectoryInfo InstallFolder { get; private set; } + /// + /// The 2 digit ISO 3166-1-alpha-2 format country code (e.g. "US" or "UK") + /// + public string CurrentCountry { get; } + /// /// The currently selected language /// @@ -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