mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +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; }
|
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>
|
/// <summary>
|
||||||
/// The currently selected language
|
/// The currently selected language
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -128,6 +133,7 @@ public Client( uint appId ) : base( appId )
|
|||||||
InstallFolder = new DirectoryInfo(appInstallDir);
|
InstallFolder = new DirectoryInfo(appInstallDir);
|
||||||
|
|
||||||
BuildId = native.apps.GetAppBuildId();
|
BuildId = native.apps.GetAppBuildId();
|
||||||
|
CurrentCountry = native.utils.GetIPCountry();
|
||||||
CurrentLanguage = native.apps.GetCurrentGameLanguage();
|
CurrentLanguage = native.apps.GetCurrentGameLanguage();
|
||||||
AvailableLanguages = native.apps.GetAvailableGameLanguages().Split( new[] {';'}, StringSplitOptions.RemoveEmptyEntries ); // TODO: Assumed colon separated
|
AvailableLanguages = native.apps.GetAvailableGameLanguages().Split( new[] {';'}, StringSplitOptions.RemoveEmptyEntries ); // TODO: Assumed colon separated
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user