From 0f6a3f2ec8f6da0393f4d827d31e8ddfb76a92e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Fri, 3 May 2024 15:18:17 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/Steam/Bot.cs | 4 ++-- ArchiSteamFarm/Steam/Storage/BotConfig.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Steam/Bot.cs b/ArchiSteamFarm/Steam/Bot.cs index fa128f43a..ff0a9cc5e 100644 --- a/ArchiSteamFarm/Steam/Bot.cs +++ b/ArchiSteamFarm/Steam/Bot.cs @@ -1536,7 +1536,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable { throw new InvalidOperationException(nameof(configFile)); } - (BotConfig? botConfig, _) = await BotConfig.Load(configFile, BotName).ConfigureAwait(false); + (BotConfig? botConfig, _) = await BotConfig.Load(configFile).ConfigureAwait(false); if (botConfig == null) { // Invalid config file, we allow user to fix it without destroying the bot right away @@ -1684,7 +1684,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable { return; } - (BotConfig? botConfig, string? latestJson) = await BotConfig.Load(configFilePath, botName).ConfigureAwait(false); + (BotConfig? botConfig, string? latestJson) = await BotConfig.Load(configFilePath).ConfigureAwait(false); if (botConfig == null) { ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.ErrorBotConfigInvalid, configFilePath)); diff --git a/ArchiSteamFarm/Steam/Storage/BotConfig.cs b/ArchiSteamFarm/Steam/Storage/BotConfig.cs index ad5a8220d..6020a14c2 100644 --- a/ArchiSteamFarm/Steam/Storage/BotConfig.cs +++ b/ArchiSteamFarm/Steam/Storage/BotConfig.cs @@ -520,7 +520,7 @@ public sealed class BotConfig { return result; } - internal static async Task<(BotConfig? BotConfig, string? LatestJson)> Load(string filePath, string? botName = null) { + internal static async Task<(BotConfig? BotConfig, string? LatestJson)> Load(string filePath) { ArgumentException.ThrowIfNullOrEmpty(filePath); if (!File.Exists(filePath)) {