Play your Steam library's Windows games on a jailbroken PS5.
C++
Ignore empty DLC depots when looking for updates
Leonardo Lobato664bbd1f4edb
diff --git a/src/steam/backend/cm_app_details.cpp b/src/steam/backend/cm_app_details.cppindex ca23d00..b9e18ae 100644--- a/src/steam/backend/cm_app_details.cpp+++ b/src/steam/backend/cm_app_details.cpp@@ -17,6 +17,9 @@ AppDetails::Update CompareWithRecord(std::uint32_t id, const std::vector<DepotInconst auto recorded = std::find_if(record.depots.begin(), record.depots.end(),[&](const installs::RecordedDepot& entry) { return entry.id == depot.id; });if (recorded == record.depots.end()) {+ // An empty one adds no files: Steam lists free DLC (and DLC folded into the game) as empty depots, which an+ // install from an older Playden doesn't record.+ if (depot.size == 0) continue;// A depot the install doesn't hold: content of DLC bought since, or new content of the game.const auto owner = depot.owner_app == 0 ? id : depot.owner_app;if (owner != id && !owners.count(owner)) update.new_dlc = true;diff --git a/tests/app_details_test.cpp b/tests/app_details_test.cppindex dd1116d..bb9edf9 100644--- a/tests/app_details_test.cpp+++ b/tests/app_details_test.cpp@@ -370,10 +370,12 @@ void InstalledGamesCompareWithTheirRecord() {"8001" { "manifests" { "public" { "gid" "11" "size" "1000" "download" "400" } "beta" { "gid" "12" "size" "1000" "download" "500" } } }"8002" { "config" { "oslist" "windows" } "manifests" { "public" { "gid" "21" "size" "100" "download" "40" } } }"8011" { "dlcappid" "8100" "config" { "oslist" "windows" } "manifests" { "public" { "gid" "31" "size" "10" "download" "5" } } }+ "8012" { "dlcappid" "8101" "manifests" { "public" { "gid" "32" "size" "0" "download" "0" } } }"branches" { "public" { "buildid" "2" } "beta" { "buildid" "3" } }}})";- const LicensedDepots::Grant grant{{8000, 8100}, {8001, 8002, 8011}};+ // 8012 is an empty depot of owned DLC 8101 that the install never held (Steam lists free DLC this way): no update.+ const LicensedDepots::Grant grant{{8000, 8100, 8101}, {8001, 8002, 8011, 8012}};installs::InstalledRecord record;record.version = 2;record.app_id = 8000;