Exemple #1
0
        /// <summary>
        /// Detects the steam config path.
        /// </summary>
        public static string GetConfigPath()
        {
            var SteamPath = SteamHelper.GetSteamPath();

            if (string.IsNullOrEmpty(SteamPath) == false)
            {
                return(Path.Combine(SteamPath, "config"));
            }
            else
            {
                Log.Warning(typeof(SteamHelper), "SteamPath is empty.");
            }

            return(string.Empty);
        }
Exemple #2
0
        /// <summary>
        /// Detects the steam apps path.
        /// </summary>
        public static string GetSteamAppsPath()
        {
            var SteamPath = SteamHelper.GetSteamPath();

            if (string.IsNullOrEmpty(SteamPath) == false)
            {
                var SteamFiles = Directory.GetDirectories(SteamPath);

                if (SteamFiles.Contains("steamapps", new PathEndingComparer()))
                {
                    return(Path.Combine(SteamPath, "steamapps"));
                }
                else
                {
                    Log.Warning(typeof(SteamHelper), "SteamApps could not be detected.");
                }
            }
            else
            {
                Log.Warning(typeof(SteamHelper), "SteamPath is empty.");
            }

            return(string.Empty);
        }