mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +03:00
Merge pull request #70 from Phyxion/patch-1
Fixed InstallFolder exception
This commit is contained in:
commit
a3a4c87ede
@ -114,7 +114,9 @@ namespace Facepunch.Steamworks
|
|||||||
SteamId = native.user.GetSteamID();
|
SteamId = native.user.GetSteamID();
|
||||||
BetaName = native.apps.GetCurrentBetaName();
|
BetaName = native.apps.GetCurrentBetaName();
|
||||||
OwnerSteamId = native.apps.GetAppOwner();
|
OwnerSteamId = native.apps.GetAppOwner();
|
||||||
InstallFolder = new DirectoryInfo( native.apps.GetAppInstallDir( AppId ) );
|
var appInstallDir = native.apps.GetAppInstallDir(AppId);
|
||||||
|
if (!String.IsNullOrEmpty(appInstallDir) && Directory.Exists(appInstallDir))
|
||||||
|
InstallFolder = new DirectoryInfo(appInstallDir);
|
||||||
BuildId = native.apps.GetAppBuildId();
|
BuildId = native.apps.GetAppBuildId();
|
||||||
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…
x
Reference in New Issue
Block a user