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()