From 2d65fed66402dddd10e5ded2a7a1189c0fa17363 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 8 Mar 2018 10:53:11 +0100 Subject: [PATCH] Rename BKR extensions to be more correct --- ArchiSteamFarm/Bot.cs | 14 +++++++------- ArchiSteamFarm/SharedInfo.cs | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ArchiSteamFarm/Bot.cs b/ArchiSteamFarm/Bot.cs index 10a0effa6..66aed852e 100755 --- a/ArchiSteamFarm/Bot.cs +++ b/ArchiSteamFarm/Bot.cs @@ -101,9 +101,9 @@ namespace ArchiSteamFarm { private string ConfigFilePath => BotPath + SharedInfo.ConfigExtension; private string DatabaseFilePath => BotPath + SharedInfo.DatabaseExtension; private bool IsAccountLocked => AccountFlags.HasFlag(EAccountFlags.Lockdown); - private string KeysToRedeemAlreadyOwnedFilePath => KeysToRedeemFilePath + SharedInfo.KeysOwnedExtension; private string KeysToRedeemFilePath => BotPath + SharedInfo.KeysExtension; - private string KeysToRedeemRedeemedFilePath => KeysToRedeemFilePath + SharedInfo.KeysRedeemedExtension; + private string KeysToRedeemUnusedFilePath => KeysToRedeemFilePath + SharedInfo.KeysUnusedExtension; + private string KeysToRedeemUsedFilePath => KeysToRedeemFilePath + SharedInfo.KeysUsedExtension; private string MobileAuthenticatorFilePath => BotPath + SharedInfo.MobileAuthenticatorExtension; private string SentryFilePath => BotPath + SharedInfo.SentryHashExtension; @@ -333,12 +333,12 @@ namespace ArchiSteamFarm { File.Delete(KeysToRedeemFilePath); } - if (File.Exists(KeysToRedeemAlreadyOwnedFilePath)) { - File.Delete(KeysToRedeemAlreadyOwnedFilePath); + if (File.Exists(KeysToRedeemUnusedFilePath)) { + File.Delete(KeysToRedeemUnusedFilePath); } - if (File.Exists(KeysToRedeemRedeemedFilePath)) { - File.Delete(KeysToRedeemRedeemedFilePath); + if (File.Exists(KeysToRedeemUsedFilePath)) { + File.Delete(KeysToRedeemUsedFilePath); } if (File.Exists(MobileAuthenticatorFilePath)) { @@ -2412,7 +2412,7 @@ namespace ArchiSteamFarm { string logEntry = game.Name + DefaultBackgroundKeysRedeemerSeparator + "[" + result.PurchaseResultDetail + "]" + DefaultBackgroundKeysRedeemerSeparator + game.Key; try { - await File.AppendAllTextAsync(redeemed ? KeysToRedeemRedeemedFilePath : KeysToRedeemAlreadyOwnedFilePath, logEntry + Environment.NewLine).ConfigureAwait(false); + await File.AppendAllTextAsync(redeemed ? KeysToRedeemUsedFilePath : KeysToRedeemUnusedFilePath, logEntry + Environment.NewLine).ConfigureAwait(false); } catch (Exception e) { ArchiLogger.LogGenericException(e); ArchiLogger.LogGenericError(string.Format(Strings.Content, logEntry)); diff --git a/ArchiSteamFarm/SharedInfo.cs b/ArchiSteamFarm/SharedInfo.cs index 9fe178281..81ba7149a 100644 --- a/ArchiSteamFarm/SharedInfo.cs +++ b/ArchiSteamFarm/SharedInfo.cs @@ -52,8 +52,8 @@ namespace ArchiSteamFarm { internal const string GlobalConfigFileName = ASF + ConfigExtension; internal const string GlobalDatabaseFileName = ASF + DatabaseExtension; internal const string KeysExtension = ".keys"; - internal const string KeysOwnedExtension = ".owned"; - internal const string KeysRedeemedExtension = ".redeemed"; + internal const string KeysUnusedExtension = ".unused"; + internal const string KeysUsedExtension = ".used"; internal const string LogFile = "log.txt"; internal const string MobileAuthenticatorExtension = ".maFile"; internal const string SentryHashExtension = ".bin";