feat(libSceDiscMap): return no-bitmap status for sceDiscMapGetPackageSize #9997

Closed
StoneDC wants to merge 1 commit from upstream-pr/9997 into main
StoneDC commented 2026-10-23 03:30:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by StoneDC on 2026-10-23T03:30:51Z.


What

Implement sceDiscMapGetPackageSize in libSceDiscMap:

  • Returns SCE_DISC_MAP_ERROR_NO_BITMAP_INFO (0x81100004) without modifying caller output pointers, matching existing module behavior when disc bitmap metadata is absent.
  • Add test coverage in core/libs/tests/GuestDiscMap.cpp verifying return code and preserved caller outputs.
  • Update docs/dev/debt/libSceDiscMap.md.

Tested

Linux (Ubuntu 26.04 x86_64, GCC 15.2.0), guest_discmap_tests passed.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Trae)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4977385334 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9997). Originally posted by [StoneDC](https://github.com/StoneDC) on 2026-10-23T03:30:51Z. --- ### What Implement `sceDiscMapGetPackageSize` in `libSceDiscMap`: - Returns `SCE_DISC_MAP_ERROR_NO_BITMAP_INFO` (0x81100004) without modifying caller output pointers, matching existing module behavior when disc bitmap metadata is absent. - Add test coverage in `core/libs/tests/GuestDiscMap.cpp` verifying return code and preserved caller outputs. - Update `docs/dev/debt/libSceDiscMap.md`. ### Tested Linux (Ubuntu 26.04 x86_64, GCC 15.2.0), `guest_discmap_tests` passed. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Trae)
MarcZX10 commented 2026-10-23 04:04:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T04:04:04Z.

Review: CHANGES_REQUESTED


The implementation and focused test pass locally on this exact head: I compiled Export.cpp with GuestDiscMap.cpp using GCC 12.2 (-O2 -Wall -Wextra -Werror) and ran the executable successfully. Conventions, test-registration audit (172 scripts), and diff check also pass. Hosted eligibility/conventions/intake/labels/report checks pass; product builds are skipped.

Blocking overlap: #8647 is still open and already implements this same sceDiscMapGetPackageSize no-bitmap behavior, leaving outputs untouched, with tests and source evidence. The difference between the two tests' output widths does not make these separate functions or fixes. CONTRIBUTING.md requires checking for an open PR that implements the same function before starting. Please coordinate with #8647's author and resolve which PR carries this implementation before proceeding; this is about the duplicate implementation, not the overall PR count.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5623745779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9997#pullrequestreview-5623745779). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T04:04:04Z. **Review:** CHANGES_REQUESTED --- The implementation and focused test pass locally on this exact head: I compiled `Export.cpp` with `GuestDiscMap.cpp` using GCC 12.2 (`-O2 -Wall -Wextra -Werror`) and ran the executable successfully. Conventions, test-registration audit (172 scripts), and diff check also pass. Hosted eligibility/conventions/intake/labels/report checks pass; product builds are skipped. Blocking overlap: #8647 is still open and already implements this same `sceDiscMapGetPackageSize` no-bitmap behavior, leaving outputs untouched, with tests and source evidence. The difference between the two tests' output widths does not make these separate functions or fixes. `CONTRIBUTING.md` requires checking for an open PR that implements the same function before starting. Please coordinate with #8647's author and resolve which PR carries this implementation before proceeding; this is about the duplicate implementation, not the overall PR count.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9997
No description provided.