From ba08fe963183c81d2ffa989f219b7de95bab5aec Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 21 Oct 2020 00:32:51 +0200 Subject: [PATCH] Make it EVEN better! --- ArchiSteamFarm/ASF.cs | 6 ++---- ArchiSteamFarm/SharedInfo.cs | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ArchiSteamFarm/ASF.cs b/ArchiSteamFarm/ASF.cs index 96a0438b5..fc78cf226 100644 --- a/ArchiSteamFarm/ASF.cs +++ b/ArchiSteamFarm/ASF.cs @@ -788,10 +788,8 @@ namespace ArchiSteamFarm { throw new ArgumentNullException(nameof(archive) + " || " + nameof(targetDirectory)); } - string steamKit2Path = Path.Combine(SharedInfo.HomeDirectory, SharedInfo.SteamKit2Path); - - if (File.Exists(steamKit2Path)) { - // We're running a build that includes our dependencies in their generic forms + if (SharedInfo.HomeDirectory == AppContext.BaseDirectory) { + // We're running a build that includes our dependencies in ASF's home // Before actually moving files in update procedure, let's minimize the risk of some assembly not being loaded that we may need in the process LoadAssembliesRecursively(Assembly.GetExecutingAssembly()); } diff --git a/ArchiSteamFarm/SharedInfo.cs b/ArchiSteamFarm/SharedInfo.cs index dcbadd733..cb9ab6432 100644 --- a/ArchiSteamFarm/SharedInfo.cs +++ b/ArchiSteamFarm/SharedInfo.cs @@ -60,7 +60,6 @@ namespace ArchiSteamFarm { internal const string ProjectURL = "https://github.com/" + GithubRepo; internal const string SentryHashExtension = ".bin"; internal const string StatisticsServer = "asf.justarchi.net"; - internal const string SteamKit2Path = nameof(SteamKit2) + ".dll"; internal const string UlongCompatibilityStringPrefix = "s_"; internal const string UpdateDirectory = "_old"; internal const string WebsiteDirectory = "www";