From 39c448dfb83506b17ffcfde1dc4707ad5ec5a9b0 Mon Sep 17 00:00:00 2001 From: akorb Date: Fri, 24 Mar 2017 17:17:37 +0100 Subject: [PATCH] Detects automatically queued update now --- SteamShutdown/AppInfo.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/SteamShutdown/AppInfo.cs b/SteamShutdown/AppInfo.cs index 44c7085..e683213 100644 --- a/SteamShutdown/AppInfo.cs +++ b/SteamShutdown/AppInfo.cs @@ -6,14 +6,25 @@ public class AppInfo public string Name { get; set; } public int State { get; set; } + /// + /// Returns a value indicating whether the game is being downloaded. Includes games in queue for download. + /// public bool IsDownloading { get { return CheckDownloading(State); } } + /// + /// Returns a value indicating whether the game is being downloaded. Includes games in queue for download. + /// + /// + /// public static bool CheckDownloading(int appState) { - return appState == 1026 || appState == 1042 || appState == 1062 || appState == 1030; + // 6: In queue for update + // 1024: download running + // 1026: In queue + return appState == 6 || appState == 1026 || appState == 1042 || appState == 1062 || appState == 1030; } public override string ToString()