Skip to content

fix(libSceAppContent): report no download space for a title without download data - #1121

Closed
TideOPL wants to merge 1 commit into
boykopovar:mainfrom
TideOPL:fix/appcontent-no-download-data
Closed

TideOPL wants to merge 1 commit into
boykopovar:mainfrom
TideOPL:fix/appcontent-no-download-data

Conversation

@TideOPL

@TideOPL TideOPL commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What

sceAppContentDownloadDataGetAvailableSpaceKb threw when the title's param.json declares a downloadDataSize of 0. PPSA16064 (Minecraft Dungeons II, Unreal Engine) declares 0 and still queries the space at start-up, and aborted there.

With a quota of 0 the existing computation already gives 0 KB available, so the guard is removed and the call returns 0 KB.

Tested

  • Windows 11, NVIDIA GeForce RTX 5070, MinGW-w64 GCC 15.2.0 (WinLibs UCRT r7). Full ctest: 393/393.
  • No new test: there's no existing harness for this call, and it would need a fake param.json.
  • PPSA16064: the title continues past the query.

Asking for ideas

I don't know whether the console returns 0 KB or an error for a title without download data; TechnicalDebt records it. If anyone has seen a title handle the other case, I'll change it.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

…ownload data

sceAppContentDownloadDataGetAvailableSpaceKb threw when the title's
param.json declares a downloadDataSize of 0. PPSA16064 (Minecraft
Dungeons II, Unreal Engine) declares 0 and still queries the space at
start-up, and aborted there.

With a quota of 0 the existing computation already gives 0 KB available,
so the guard is removed and the call returns 0 KB. Whether the console
returns an error for such a title instead is not known; TechnicalDebt
records it. The title continues past the query.
@merwie

merwie commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Hi @TideOPL, #842 (opened 2026-10-06) makes the same change to sceAppContentDownloadDataGetAvailableSpaceKb, and a reviewer asked us to agree which one goes forward. #842 now also has the TechnicalDebt line and a ctest case (downloadDataSize 0 → OK with 0 KB). Would you be OK with #842 going forward and closing this one, or listing it under Depends on? Happy to credit your PPSA16064 evidence in its description. If you'd rather keep yours, I'm fine closing mine instead.

@TideOPL

TideOPL commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@merwie Go ahead and use your one! I'll go ahead and close this. Many thanks

@TideOPL

TideOPL commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Closed

@TideOPL TideOPL closed this Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs needs rebase Conflicts with main, rebase needed prx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants