コード例 #1
0
 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));
 }
コード例 #2
0
        public static IAbsoluteDirectoryPath TryGetDefaultDirectory(this SteamInfoAttribute steamInfo)
        {
            var steamApp = TryGetSteamApp(steamInfo);

            return((steamApp != null) && steamApp.IsValid ? steamApp.AppPath : null);
        }