Skip to content

feat(libSceCffMgr): add export placeholders - #13399

Closed
Celegans12 wants to merge 1 commit into
boykopovar:mainfrom
Celegans12:feat/cffmgr-inventory-exports-20261030
Closed

Celegans12 wants to merge 1 commit into
boykopovar:mainfrom
Celegans12:feat/cffmgr-inventory-exports-20261030

Conversation

@Celegans12

Copy link
Copy Markdown
Contributor

What

Adds libSceCffMgr with 7 throwing export placeholders, one for every name the PS5 13.60 export inventory resolves for the library. The pinned ps5-nid-map module map assigns them to the physical libSceCffMgr.sprx provider. Each NID was recomputed from its name. Signatures are unknown, so each placeholder is a parameterless int that throws through NotImplemented_nid_no_patch, and docs/dev/debt/libSceCffMgr.md records the gap.

Tested

Not tested on a title. python3 tools/check_conventions.py --base origin/main passes, and clang++ -std=c++20 -fsyntax-only on the library's Export.cpp is clean. Searched main and the heads of PRs #11000 to #13325 for the names and NIDs, and none define them.

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

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — changes requested

All seven named exports in this PR are already present in open PR #13355, which adds the same libSceCffMgr files; please coordinate the duplicate scope with that PR.

What I ran

I inspected PR #13399 at head 816bd7e72b831e4086e463a9ef87c4bb8a28a3b4 against base d998343ced21f2c5b9c76dc06ef3a77507311565 and compared it with open PR #13355 at head ae18972bf691108f4220dbb6fbc420294b7bc875 (base da026c70655a132031d45e2008c24f993870d801). Both target main; I did not merge either head locally. Environment: Linux, Python 3.11.2. Commands/checks:

gh pr diff 13399 --repo boykopovar/AnyPS5 --patch
gh pr diff 13355 --repo boykopovar/AnyPS5 --patch
git diff --check d998343ced21f2c5b9c76dc06ef3a77507311565...816bd7e72b831e4086e463a9ef87c4bb8a28a3b4
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base d998343ced21f2c5b9c76dc06ef3a77507311565 --head 816bd7e72b831e4086e463a9ef87c4bb8a28a3b4 --json
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13399

The patch whitespace check exited 0 with no output. The ABI audit completed. The repository precheck did not finish after about three minutes; its conventions stage was still running when I stopped the check. No build or tests were run.

Results

Check Result
Export overlap comparison All seven named exports overlap with #13355.
ABI source audit Passed: each name has one declaration and definition; computed NIDs are reported below. This lexical check does not verify binary ABI or runtime behavior.
Patch whitespace Passed (git diff --check, exit 0).
Repository no-build precheck Incomplete; convention stage did not finish after about three minutes.
Hosted CI Pending when checked; not treated as a pass.
Build and tests Not run.
Export overlap comparison output
PR #13399 names: 7
DUPLICATE sceConsoleFeatureFlagManagerDebugInit
DUPLICATE sceConsoleFeatureFlagManagerEventClose
DUPLICATE sceConsoleFeatureFlagManagerEventOpen
DUPLICATE sceConsoleFeatureFlagManagerGetVersion
DUPLICATE sceConsoleFeatureFlagManagerIsOn
DUPLICATE sceConsoleFeatureFlagManagerIsWaitingReboot
DUPLICATE sceConsoleFeatureFlagManagerSetOn
PR #13355 matching names: 7
ABI audit output
{
  "status": "passed",
  "symbols": [
    {
      "name": "sceConsoleFeatureFlagManagerDebugInit",
      "computed_nid": "50MCtvftvqM",
      "declarations": [
        "core/libs/prx/libSceCffMgr/include/Api.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceCffMgr/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceConsoleFeatureFlagManagerEventClose",
      "computed_nid": "cWNS8YDBg50",
      "declarations": [
        "core/libs/prx/libSceCffMgr/include/Api.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceCffMgr/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceConsoleFeatureFlagManagerEventOpen",
      "computed_nid": "eP0HTMy1alQ",
      "declarations": [
        "core/libs/prx/libSceCffMgr/include/Api.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceCffMgr/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceConsoleFeatureFlagManagerGetVersion",
      "computed_nid": "dJrXJy9pZuE",
      "declarations": [
        "core/libs/prx/libSceCffMgr/include/Api.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceCffMgr/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceConsoleFeatureFlagManagerIsOn",
      "computed_nid": "mD1xcf2VbtU",
      "declarations": [
        "core/libs/prx/libSceCffMgr/include/Api.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceCffMgr/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceConsoleFeatureFlagManagerIsWaitingReboot",
      "computed_nid": "pCq+1Dq3UtA",
      "declarations": [
        "core/libs/prx/libSceCffMgr/include/Api.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceCffMgr/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceConsoleFeatureFlagManagerSetOn",
      "computed_nid": "fuG73t4DqoM",
      "declarations": [
        "core/libs/prx/libSceCffMgr/include/Api.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceCffMgr/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    }
  ],
  "findings": [],
  "limitations": [
    "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.",
    "An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects."
  ]
}

Findings

Blocking

  • PR #13355 already introduces all seven named exports added here, in the same Export.cpp, public API header, umbrella header, and debt file. That duplicate function/export scope needs to be coordinated before both PRs proceed as separate changes. Please agree on the shared implementation with #13355 and remove or otherwise resolve the duplicate scope here. This finding concerns only the seven named exports; #13355's additional exports are not duplicates introduced by this PR.

Non-blocking

  • The parameter lists, return types, runtime versions, and behavior are marked unverified in this PR's debt entry; I have not independently validated them.
  • The repository convention check, build, and tests remain unverified.

Sources

Not verified

  • Compilation, tests, runtime behavior, binary ABI, and version-table behavior were not verified.
  • The hosted checks were pending at the last check, and the local repository precheck did not complete after about three minutes.

To get this to a good state

Please coordinate with #13355 and update this PR so the two changes do not independently add the same seven exports. I will re-run the relevant checks on the updated head.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@Celegans12 thanks for the placeholders. #13355 (opened a few minutes earlier) adds the same library with all 14 exports from the 13.60 inventory, the 7 named ones in this PR included with the same names, so the two branches conflict in every file and this one adds nothing that is missing there. Could you close this PR, or check whether anything is absent from #13355 and put it there?

@github-actions

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 13355 core/libs/prx/libSceCffMgr/Export.cpp
core/libs/prx/libSceCffMgr/include/Api.hpp
docs/dev/debt/libSceCffMgr.md
sceConsoleFeatureFlagManagerDebugInit
sceConsoleFeatureFlagManagerEventClose
sceConsoleFeatureFlagManagerEventOpen
sceConsoleFeatureFlagManagerGetVersion
sceConsoleFeatureFlagManagerIsOn
sceConsoleFeatureFlagManagerIsWaitingReboot
sceConsoleFeatureFlagManagerSetOn
core/libs/prx/libSceCffMgr/Export.cpp
core/libs/prx/libSceCffMgr/include/Api.hpp
core/libs/prx/libSceCffMgr/libSceCffMgr.hpp
docs/dev/debt/libSceCffMgr.md

@Celegans12

Copy link
Copy Markdown
Contributor Author

I checked the current patches and confirmed that #13355 already covers every export added here. Closing this duplicate in favor of that earlier PR.

@Celegans12 Celegans12 closed this Oct 30, 2026
@github-actions

Copy link
Copy Markdown

Progress report (d998343 → 816bd7e)

📉 System libraries: 27.23% (-0.01%, +7 declared functions)

🆕 7 declared as stubs
Library Name
libSceCffMgr sceConsoleFeatureFlagManagerDebugInit
libSceCffMgr sceConsoleFeatureFlagManagerEventClose
libSceCffMgr sceConsoleFeatureFlagManagerEventOpen
libSceCffMgr sceConsoleFeatureFlagManagerGetVersion
libSceCffMgr sceConsoleFeatureFlagManagerIsOn
libSceCffMgr sceConsoleFeatureFlagManagerIsWaitingReboot
libSceCffMgr sceConsoleFeatureFlagManagerSetOn

Changed libraries (implemented exports)

Library Before After Change
libSceCffMgr Not present 0/7 (0.00%) n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants