From 3d1eab828b6a385ca0ed6e3ba6eb99d7c107c34f Mon Sep 17 00:00:00 2001 From: Archi Date: Mon, 22 Nov 2021 23:52:17 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Core/ASF.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArchiSteamFarm/Core/ASF.cs b/ArchiSteamFarm/Core/ASF.cs index 681d4e008..b5463a07e 100644 --- a/ArchiSteamFarm/Core/ASF.cs +++ b/ArchiSteamFarm/Core/ASF.cs @@ -941,13 +941,13 @@ public static class ASF { // 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 LoadAllAssemblies(); + } else { + // This is a tricky one, for some reason we might need to preload some selected assemblies even in OS-specific builds that normally should be self-contained... + // It's as if the executable file was directly mapped to memory and moving it out of the original path caused the whole thing to crash + // TODO: This is a total hack, I wish we could get to the bottom of this hole and find out what is really going on there in regards to the above + LoadAssembliesNeededBeforeUpdate(); } - // This is a tricky one, for some reason we might need to preload some selected assemblies even in OS-specific builds that normally should be self-contained... - // It's as if the executable file was directly mapped to memory and moving it out of the original path caused the whole thing to crash - // TODO: This is a total hack, I wish we could get to the bottom of this hole and find out what is really going on there in regards to the above - LoadAssembliesNeededBeforeUpdate(); - // Firstly we'll move all our existing files to a backup directory string backupDirectory = Path.Combine(targetDirectory, SharedInfo.UpdateDirectory);