diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 982c471d21c63..7e41a28ea7994 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -1169,12 +1169,12 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) { } // Support and convert SDA files - ulong steamID = callback.ClientSteamID; - if (BotDatabase.SteamGuardAccount == null && File.Exists(steamID + ".maFile")) { + string maFilePath = Path.Combine(Program.ConfigDirectory, callback.ClientSteamID.ConvertToUInt64() + ".maFile"); + if (BotDatabase.SteamGuardAccount == null && File.Exists(maFilePath)) { Logging.LogGenericInfo("Converting SDA .maFile into ASF format...", BotName); try { - BotDatabase.SteamGuardAccount = JsonConvert.DeserializeObject(File.ReadAllText(steamID + ".maFile")); - File.Delete(steamID + ".maFile"); + BotDatabase.SteamGuardAccount = JsonConvert.DeserializeObject(File.ReadAllText(maFilePath)); + File.Delete(maFilePath); Logging.LogGenericInfo("Success!", BotName); } catch (Exception e) { Logging.LogGenericException(e, BotName);