public static ISteamApp TryGetSteamApp(this SteamInfoAttribute steamInfo) { if ((steamInfo.AppId <= 0) || !Game.SteamHelper.SteamFound) { return(null); // SteamApp.Default; // TODO } return(Game.SteamHelper.TryGetSteamAppById(steamInfo.AppId)); }
public static IAbsoluteDirectoryPath TryGetDefaultDirectory(this SteamInfoAttribute steamInfo) { var steamApp = TryGetSteamApp(steamInfo); return((steamApp != null) && steamApp.IsValid ? steamApp.AppPath : null); }