mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Misc
This commit is contained in:
@@ -1421,16 +1421,16 @@ namespace ArchiSteamFarm {
|
|||||||
return message.Replace("\\", "\\\\").Replace("[", "\\[");
|
return message.Replace("\\", "\\\\").Replace("[", "\\[");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string GetBotFilePath(string botName, EBotFileType filePath) {
|
private static string GetBotFilePath(string botName, EBotFileType fileType) {
|
||||||
if (string.IsNullOrEmpty(botName) || !Enum.IsDefined(typeof(EBotFileType), filePath)) {
|
if (string.IsNullOrEmpty(botName) || !Enum.IsDefined(typeof(EBotFileType), fileType)) {
|
||||||
ASF.ArchiLogger.LogNullError(nameof(botName) + " || " + nameof(filePath));
|
ASF.ArchiLogger.LogNullError(nameof(botName) + " || " + nameof(fileType));
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
string botPath = Path.Combine(SharedInfo.ConfigDirectory, botName);
|
string botPath = Path.Combine(SharedInfo.ConfigDirectory, botName);
|
||||||
|
|
||||||
switch (filePath) {
|
switch (fileType) {
|
||||||
case EBotFileType.Config:
|
case EBotFileType.Config:
|
||||||
|
|
||||||
return botPath + SharedInfo.ConfigExtension;
|
return botPath + SharedInfo.ConfigExtension;
|
||||||
@@ -1453,7 +1453,7 @@ namespace ArchiSteamFarm {
|
|||||||
|
|
||||||
return botPath + SharedInfo.SentryHashExtension;
|
return botPath + SharedInfo.SentryHashExtension;
|
||||||
default:
|
default:
|
||||||
ASF.ArchiLogger.LogGenericError(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(filePath), filePath));
|
ASF.ArchiLogger.LogGenericError(string.Format(Strings.WarningUnknownValuePleaseReport, nameof(fileType), fileType));
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user