From 4ebed5a046ddba447611745f985952d1bcbcf9fb Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 19 Dec 2020 00:14:45 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Bot.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index d8c6751f0..ed7c2b154 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -482,6 +482,15 @@ namespace ArchiSteamFarm { }; } + [PublicAPI] + public string GetFilePath(EFileType fileType) { + if (!Enum.IsDefined(typeof(EFileType), fileType)) { + throw new InvalidEnumArgumentException(nameof(fileType), (int) fileType, typeof(EFileType)); + } + + return GetFilePath(BotName, fileType); + } + [PublicAPI] public async Task GetTradeHoldDuration(ulong steamID, ulong tradeID) { if ((steamID == 0) || !new SteamID(steamID).IsIndividualAccount) { @@ -1678,14 +1687,6 @@ namespace ArchiSteamFarm { return message.Replace("\\", "\\\\").Replace("[", "\\["); } - private string GetFilePath(EFileType fileType) { - if (!Enum.IsDefined(typeof(EFileType), fileType)) { - throw new ArgumentNullException(nameof(fileType)); - } - - return GetFilePath(BotName, fileType); - } - private async Task?> GetKeysFromFile(string filePath) { if (string.IsNullOrEmpty(filePath)) { throw new ArgumentNullException(nameof(filePath));