Use different text for private apps

This commit is contained in:
Archi
2024-02-06 20:08:21 +01:00
parent 5f69b337a6
commit 82ccd4ddce
3 changed files with 12 additions and 2 deletions

View File

@@ -1232,5 +1232,11 @@ namespace ArchiSteamFarm.Localization {
return ResourceManager.GetString("ErrorTooManyCrashes", resourceCulture);
}
}
public static string IdlingGameNotPossiblePrivate {
get {
return ResourceManager.GetString("IdlingGameNotPossiblePrivate", resourceCulture);
}
}
}
}

View File

@@ -760,4 +760,8 @@ Process uptime: {1}</value>
<data name="ErrorTooManyCrashes" xml:space="preserve">
<value>Your ASF has crashed too many times recently, and due to that the process initialization has been disabled. Either investigate, fix your setup, then remove ASF.crash file from your config directory, or supply --ignore-unsupported-environment argument if you really know what you're doing.</value>
</data>
<data name="IdlingGameNotPossiblePrivate" xml:space="preserve">
<value>Farming {0} ({1}) is disabled, as that game is currently marked as private. If you intend from ASF to farm that game, then consider changing its privacy settings.</value>
<comment>{0} will be replaced by game's ID (number), {1} will be replaced by game's name</comment>
</data>
</root>

View File

@@ -659,7 +659,7 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable {
if (privateAppIDs?.Contains(appID) == true) {
// This game is private, it won't drop any cards until removal
Bot.ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.IdlingGameNotPossible, appID, name));
Bot.ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.IdlingGameNotPossiblePrivate, appID, name));
continue;
}
@@ -1275,7 +1275,7 @@ public sealed class CardsFarmer : IAsyncDisposable, IDisposable {
}
// This game is private, it won't drop any cards until removal
Bot.ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.IdlingGameNotPossible, appID, name));
Bot.ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.IdlingGameNotPossiblePrivate, appID, name));
gamesToFarm.Remove(appID);
}