Address Config already loaded error.

pull/583/head
Alstruit 1 year ago
parent e600f92182
commit 73329330d3
No known key found for this signature in database
GPG Key ID: 4F57E6793C946CEC

@ -440,14 +440,17 @@ namespace DepotDownloader
cdnPool = new CDNClientPool(steam3, appId);
// Load our configuration data containing the depots currently installed
var configPath = Config.InstallDirectory;
if (string.IsNullOrWhiteSpace(configPath))
if (DepotConfigStore.Instance == null)
{
configPath = DEFAULT_DOWNLOAD_DIR;
}
var configPath = Config.InstallDirectory;
if (string.IsNullOrWhiteSpace(configPath))
{
configPath = DEFAULT_DOWNLOAD_DIR;
}
Directory.CreateDirectory(Path.Combine(configPath, CONFIG_DIR));
DepotConfigStore.LoadFromFile(Path.Combine(configPath, CONFIG_DIR, "depot.config"));
Directory.CreateDirectory(Path.Combine(configPath, CONFIG_DIR));
DepotConfigStore.LoadFromFile(Path.Combine(configPath, CONFIG_DIR, "depot.config"));
}
await steam3?.RequestAppInfo(appId);

Loading…
Cancel
Save