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
        public InstallBase Update(InstallBase installBase)
        {
            var newInstallBase = _context.InstallBase.Update(installBase);

            if (newInstallBase != null && newInstallBase.State == EntityState.Added)
            {
                var affectedRows = _context.SaveChanges();

                if (affectedRows > 0)
                {
                    return(newInstallBase.Entity);
                }
            }

            return(null);
        }
Example #4
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 #5
0
        public void SetUp()
        {
            TestBase = new InstallBase();

            TestBase.SetUp();
        }
Example #6
0
        public void SetUp()
        {
            _testBase = new InstallBase();

            _testBase.SetUp();
        }
Example #7
0
        void SetAppPath()
        {
            var installDir = GetInstallDir();

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