From e5639d18c00ada2de75c10d1dcc1ade5685af629 Mon Sep 17 00:00:00 2001 From: Citrinate Date: Wed, 25 Sep 2024 20:13:48 -0400 Subject: [PATCH] Include free preload packages --- FreePackages/Data/FilterableApp.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FreePackages/Data/FilterableApp.cs b/FreePackages/Data/FilterableApp.cs index 31e8249..2b2a54b 100644 --- a/FreePackages/Data/FilterableApp.cs +++ b/FreePackages/Data/FilterableApp.cs @@ -109,7 +109,9 @@ internal bool IsFree() { } internal bool IsAvailable() { - if (ReleaseState != "released" && State != "eStateAvailable") { + string[] availableReleaseStates = ["released", "preloadonly"]; + string[] availableStates = ["eStateAvailable"]; + if (!availableReleaseStates.Contains(ReleaseState) || !availableStates.Contains(State)) { // App not released yet // Note: There's another seemingly relevant field: kv["common"]["steam_release_date"] // steam_release_date is not checked because an app can be "released", still have a future release date, and still be redeemed