mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-03-29 05:39:06 +03:00
InstalledDepots, AppInstallDir appd param default to current app
This commit is contained in:
parent
396be12edd
commit
11b7fde17d
@ -165,8 +165,11 @@ namespace Steamworks
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a list of all installed depots for a given App ID in mount order
|
/// Gets a list of all installed depots for a given App ID in mount order
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static IEnumerable<DepotId> InstalledDepots( AppId appid )
|
public static IEnumerable<DepotId> InstalledDepots( AppId appid = default )
|
||||||
{
|
{
|
||||||
|
if ( appid == 0 )
|
||||||
|
appid = SteamClient.AppId;
|
||||||
|
|
||||||
var depots = new DepotId_t[32];
|
var depots = new DepotId_t[32];
|
||||||
uint count = 0;
|
uint count = 0;
|
||||||
|
|
||||||
@ -182,8 +185,11 @@ namespace Steamworks
|
|||||||
/// Gets the install folder for a specific AppID.
|
/// 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.
|
/// This works even if the application is not installed, based on where the game would be installed with the default Steam library location.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string AppInstallDir( AppId appid )
|
public static string AppInstallDir( AppId appid = default )
|
||||||
{
|
{
|
||||||
|
if ( appid == 0 )
|
||||||
|
appid = SteamClient.AppId;
|
||||||
|
|
||||||
var sb = Helpers.TakeStringBuilder();
|
var sb = Helpers.TakeStringBuilder();
|
||||||
|
|
||||||
if ( Internal.GetAppInstallDir( appid.Value, sb, (uint) sb.Capacity ) == 0 )
|
if ( Internal.GetAppInstallDir( appid.Value, sb, (uint) sb.Capacity ) == 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user