feat(libSceLibcInternal): implement money facet get and put members #17628

Merged
B-Howell merged 10 commits from upstream-pr/17628 into main 2026-11-12 04:09:31 +00:00
B-Howell commented 2026-11-09 04:51:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-09T04:51:03Z.


What

Supersedes #15790, which was closed under the former open-PR cap.

Implement the public get and put overloads for narrow and wide money facets. Each forwards the original arguments to the matching virtual method on the guest facet and returns its iterator. The eight existing NIDs are unchanged and no exports are added.

The forwarding behavior follows the C++ standard's locale.money.get.members and locale.money.put.members requirements. The slot order follows the pinned STL source and the existing guest facet layout. The guest fixture covers all eight dispatches, arguments, return values and derived overrides. Native console vtable slots remain unverified. The base money parsing and formatting virtuals remain unimplemented.

Tested

On b6dc92f733b2ae14aeb6f11d2173125ab1169288, Windows 11 with WinLibs GCC 15.2.0 UCRT and Ubuntu WSL2 with GCC 11.4 each passed the money-facet and ConstantMembers guest tests 3/3 per test and all 65 public-header checks. Both build checkouts restored cleanly. The focused test exercises all eight overloads by their native export names. The standard NID patcher exposed all eight expected NIDs in a disposable copy of the Windows control binary. Conventions passed.

The Windows negative control at 62e7e734 retained the fixture, header and registration, restored Export.cpp from d03beaf110, and emptied the new provider source. The target built successfully, and CTest exited 8 with the expected diagnostic from the stub for G84okRnyJJg after finding all eight exports.

The original overlap scan screened 1,976 open PR heads. I reviewed all 13 skipped shared-file comparisons at their exact heads. The scan found a shared debt insertion point with #16237. After #15992 landed, this refresh implemented its seven typed names and preserved the eighth NID through its existing alias registration. See the merge-order discussion. This branch retains the exception provider from #16024, the time_get providers and shared iterator layout from #16005, and the six error-category and codecvt providers from #15696. The source audit confirmed that only the eight money providers change.

The pinned tools/progress.py collector counts 12,680 of 37,899 implemented library functions (33.46%), up from 12,672 (33.44%) on 75c65bf. libSceLibcInternal rises from 299 to 307 of 1,137, with the same denominator.

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

🤖 Generated with Codex

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5218900014 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17628). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-11-09T04:51:03Z. --- ### What Supersedes #15790, which was closed under the former open-PR cap. Implement the public get and put overloads for narrow and wide money facets. Each forwards the original arguments to the matching virtual method on the guest facet and returns its iterator. The eight existing NIDs are unchanged and no exports are added. The forwarding behavior follows the C++ standard's locale.money.get.members and locale.money.put.members requirements. The slot order follows the [pinned STL source](https://github.com/microsoft/STL/blob/219514876ea86491de191ceaa88632616bbc0f19/stl/inc/xlocmon#L363-L390) and the existing guest facet layout. The guest fixture covers all eight dispatches, arguments, return values and derived overrides. Native console vtable slots remain unverified. The base money parsing and formatting virtuals remain unimplemented. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> On `b6dc92f733b2ae14aeb6f11d2173125ab1169288`, Windows 11 with WinLibs GCC 15.2.0 UCRT and Ubuntu WSL2 with GCC 11.4 each passed the money-facet and ConstantMembers guest tests 3/3 per test and all 65 public-header checks. Both build checkouts restored cleanly. The focused test exercises all eight overloads by their native export names. The standard NID patcher exposed all eight expected NIDs in a disposable copy of the Windows control binary. Conventions passed. The Windows negative control at `62e7e734` retained the fixture, header and registration, restored `Export.cpp` from `d03beaf110`, and emptied the new provider source. The target built successfully, and CTest exited 8 with the expected diagnostic from the stub for `G84okRnyJJg` after finding all eight exports. The original overlap scan screened 1,976 open PR heads. I reviewed all 13 skipped shared-file comparisons at their exact heads. The scan found a shared debt insertion point with #16237. After #15992 landed, this refresh implemented its seven typed names and preserved the eighth NID through its existing alias registration. See the [merge-order discussion](https://github.com/boykopovar/AnyPS5/pull/15992#issuecomment-6731665633). This branch retains the exception provider from #16024, the time_get providers and shared iterator layout from #16005, and the six error-category and codecvt providers from #15696. The source audit confirmed that only the eight money providers change. The pinned tools/progress.py collector counts 12,680 of 37,899 implemented library functions (33.46%), up from 12,672 (33.44%) on 75c65bf. libSceLibcInternal rises from 299 to 307 of 1,137, with the same denominator. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes 🤖 Generated with [Codex](https://openai.com/codex)
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!17628
No description provided.