void LoadManifest() { var configPath = InstallBase.GetChildDirectoryWithName("SteamApps").GetChildFileWithName("appmanifest_" + AppId + ".acf"); AppManifest = KeyValueHelper.LoadFromFile(configPath); }
void LoadManifest() { var configPath = InstallBase.GetChildDirectoryWithName("SteamApps").GetChildFileWithName("appmanifest_" + AppId + ".acf"); AppManifest = new KeyValues(Tools.FileUtil.Ops.ReadTextFileWithRetry(configPath)); }
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); }
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)); } } }
public void SetUp() { TestBase = new InstallBase(); TestBase.SetUp(); }
public void SetUp() { _testBase = new InstallBase(); _testBase.SetUp(); }
void SetAppPath() { var installDir = GetInstallDir(); AppPath = InstallBase.GetChildDirectoryWithName(@"SteamApps\Common\" + installDir); }