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

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

            AppManifest = new KeyValues(Tools.FileUtil.Ops.ReadTextFileWithRetry(configPath));
        }
Esempio n. 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));
         }
     }
 }
Esempio n. 4
0
        void SetAppPath()
        {
            var installDir = GetInstallDir();

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