Example #1
0
        void LoadManifest()
        {
            var configPath =
                InstallBase.GetChildDirectoryWithName("SteamApps").GetChildFileWithName("appmanifest_" + AppId + ".acf");

            AppManifest = KeyValueHelper.LoadFromFile(configPath);
        }
Example #2
0
        void LoadManifest()
        {
            var configPath =
                InstallBase.GetChildDirectoryWithName("SteamApps").GetChildFileWithName("appmanifest_" + AppId + ".acf");

            AppManifest = new KeyValues(Tools.FileUtil.Ops.ReadTextFileWithRetry(configPath));
        }
Example #3
0
 void SetAppPath()
 {
     if (AppConfig != null && AppConfig.ContainsKey("installdir"))
     {
         AppPath =
             InstallBase.GetChildDirectoryWithName(@"SteamApps\Common\" +
                                                   AppConfig.GetString("installdir"));
     }
     else if (AppManifest != null)
     {
         try {
             AppPath =
                 InstallBase.GetChildDirectoryWithName(@"SteamApps\Common\" +
                                                       AppManifest.GetString(new[] { "AppState", "installdir" }));
         } catch (KeyNotFoundException ex) {
             MainLog.Logger.FormattedWarnException(ex, "AppManifest Invalid ({0})".FormatWith(AppId));
         }
     }
 }
Example #4
0
        void SetAppPath()
        {
            var installDir = GetInstallDir();

            AppPath = InstallBase.GetChildDirectoryWithName(@"SteamApps\Common\" + installDir);
        }