diff --git a/Facepunch.Steamworks/SteamApps.cs b/Facepunch.Steamworks/SteamApps.cs index b8f4ed0..e7d9a4c 100644 --- a/Facepunch.Steamworks/SteamApps.cs +++ b/Facepunch.Steamworks/SteamApps.cs @@ -165,8 +165,11 @@ namespace Steamworks /// /// Gets a list of all installed depots for a given App ID in mount order /// - public static IEnumerable InstalledDepots( AppId appid ) + public static IEnumerable InstalledDepots( AppId appid = default ) { + if ( appid == 0 ) + appid = SteamClient.AppId; + var depots = new DepotId_t[32]; uint count = 0; @@ -182,8 +185,11 @@ namespace Steamworks /// Gets the install folder for a specific AppID. /// This works even if the application is not installed, based on where the game would be installed with the default Steam library location. /// - public static string AppInstallDir( AppId appid ) + public static string AppInstallDir( AppId appid = default ) { + if ( appid == 0 ) + appid = SteamClient.AppId; + var sb = Helpers.TakeStringBuilder(); if ( Internal.GetAppInstallDir( appid.Value, sb, (uint) sb.Capacity ) == 0 )