mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
Fixed InstallFolder exception
This folder does not always exist.
This commit is contained in:
parent
1cf2130703
commit
72bae11073
@ -114,6 +114,7 @@ public Client( uint appId )
|
||||
SteamId = native.user.GetSteamID();
|
||||
BetaName = native.apps.GetCurrentBetaName();
|
||||
OwnerSteamId = native.apps.GetAppOwner();
|
||||
if (!String.IsNullOrEmpty(native.apps.GetAppInstallDir(AppId)) && Directory.Exists(native.apps.GetAppInstallDir(AppId)))
|
||||
InstallFolder = new DirectoryInfo( native.apps.GetAppInstallDir( AppId ) );
|
||||
BuildId = native.apps.GetAppBuildId();
|
||||
CurrentLanguage = native.apps.GetCurrentGameLanguage();
|
||||
|
Loading…
Reference in New Issue
Block a user