mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Allow one more game to be played when custom gameName is used
This commit is contained in:
@@ -106,6 +106,8 @@ namespace ArchiSteamFarm {
|
||||
|
||||
ClientMsgProtobuf<CMsgClientGamesPlayed> request = new ClientMsgProtobuf<CMsgClientGamesPlayed>(EMsg.ClientGamesPlayed);
|
||||
|
||||
byte maxGamesCount = MaxGamesPlayedConcurrently;
|
||||
|
||||
if (!string.IsNullOrEmpty(gameName)) {
|
||||
// If we have custom name to display, we must workaround the Steam network fuckup and send request on clean non-playing session
|
||||
// This ensures that custom name will in fact display properly
|
||||
@@ -119,12 +121,14 @@ namespace ArchiSteamFarm {
|
||||
ModID = uint.MaxValue
|
||||
}
|
||||
});
|
||||
|
||||
maxGamesCount++;
|
||||
}
|
||||
|
||||
foreach (uint gameID in gameIDs.Where(gameID => gameID != 0)) {
|
||||
request.Body.games_played.Add(new CMsgClientGamesPlayed.GamePlayed { game_id = new GameID(gameID) });
|
||||
|
||||
if (request.Body.games_played.Count >= MaxGamesPlayedConcurrently) {
|
||||
if (request.Body.games_played.Count >= maxGamesCount) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user