fix: handle steam 0B depot download (fix recent update of Vampire Survivors DLC) - #1590
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughBumps the bundled JavaSteam JARs from ChangesJavaSteam upgrade and depot filtering fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| depot.sharedInstall | ||
| if (!hasContent) | ||
| return false | ||
| if (depot.manifests.isNotEmpty() && depot.manifests.values.all { it.size == 0L && it.download == 0L }) |
There was a problem hiding this comment.
I think instead of doing this it is safer to:
- Take in
isDlc = falseparam for the method - On line 1016, pass in
isDlc = true - Change the code to
val isDlcDepot = isDlc || depot.dlcAppId != INVALID_APP_ID
...
if (depot.manifests.isNotEmpty() && (!isDlcDepot && depot.manifests.values.all { it.size == 0L && it.download == 0L }))
Thoughts?
Description
Fix game like Vampire Survivors DLC that has 0B depot updated recently.
Recording
Type of Change
Checklist
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed.CONTRIBUTING.md.Summary by cubic
Fixes Steam 0B depot handling so DLC like Vampire Survivors installs correctly after the recent update. Updates
in.dragonbra:javasteamfor compatibility.Bug Fixes
DepotFilteringTestto accept 0‑byte depots.Dependencies
in.dragonbra:javasteamto1.8.0.1-20-SNAPSHOTand updated local JAR paths.Written for commit 1fcc4fc. Summary will update on new commits.
Summary by CodeRabbit
Bug Fixes
Chores