Skip to content

feat(libSceNet): implement sceNetShowPolicy - #8225

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
jagrat04:feat/libSceNet-show-policy
Oct 24, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
jagrat04:feat/libSceNet-show-policy

Conversation

@jagrat04

Copy link
Copy Markdown
Contributor

What

Implement sceNetShowPolicy in core/libs/prx/libSceNet/Export.cpp:

  • Returns 0 silently without printing policy info, matching sceNetShowIfconfig and sceNetShowNetstat which follow shadPS4.
  • Adds guest unit tests in core/libs/tests/GuestSceNet.cpp verifying success return.
  • Documents the stub in docs/dev/debt/libSceNet.md under Silent stubs.

Tested

  • Windows 11 Enterprise (MinGW GCC 15.2): ninja -C build libSceNet guest_sce_net_tests built cleanly; ctest --test-dir build -V -R guest_sce_net passed (1/1 tests passed 100%).
  • Linux (Ubuntu 24.04 via WSL2, GCC 15): ninja -C build-linux libSceNet guest_sce_net_tests built cleanly; ctest --test-dir build-linux -V -R guest_sce_net passed (1/1 tests passed 100%).
  • python tools/check_conventions.py --base origin/main: passed with 0 violations.
  • python3 tools/pr_overlap.py --branch feat/libSceNet-show-policy: no overlap with open pull requests.

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

@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Progress report (ab347d1 → 08d4c3c)

📈 System libraries: 42.36% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNet sceNetShowPolicy
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceNet sceNetShowPolicy

@github-actions

github-actions Bot commented Oct 20, 2026 •

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 10502 core/libs/tests/GuestSceNet.cpp L264-272
docs/dev/debt/libSceNet.md L5-6

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 5836 core/libs/prx/libSceNet/Export.cpp
core/libs/tests/GuestSceNet.cpp
docs/dev/debt/libSceNet.md
PR 6044 core/libs/tests/GuestSceNet.cpp
PR 7201 core/libs/prx/libSceNet/Export.cpp
PR 7511 core/libs/tests/GuestSceNet.cpp
PR 9727 core/libs/prx/libSceNet/Export.cpp
core/libs/tests/GuestSceNet.cpp
docs/dev/debt/libSceNet.md
PR 9733 core/libs/prx/libSceNet/Export.cpp
docs/dev/debt/libSceNet.md

@xXPBSXx

xXPBSXx commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Independent Windows run of this PR (data only).

Environment: Windows 10 Pro 10.0.19045, Ryzen 7 5800X3D, WinLibs GCC 15.2.0 r7 (MinGW-w64 UCRT), Release, BUILD_TESTING=ON. Merge-tree of the PR head against main 339217e is clean. I built only guest_sce_net_tests; ctest -N -R guest_sce_net lists exactly one test.

Results (3 runs each):

  • PR head: guest_sce_net passes 3/3.
  • Baseline: I kept the PR's test and replaced only core/libs/prx/libSceNet/Export.cpp with the version from the PR's merge base (11ee778434), then rebuilt. The test fails 3/3 (exit 0xc0000409, a failed Require). I restored the PR's Export.cpp afterwards.

Not run: other platforms, the other SceNet tests, the full repository CTest, and any title or console run.

AI-assisted (Claude Code).

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 21, 2026
@adriadam10 adriadam10 self-assigned this Oct 21, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
@jagrat04
jagrat04 force-pushed the feat/libSceNet-show-policy branch from 1195170 to de08b37 Compare October 21, 2026 15:32
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 21, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor

I am reviewing #9506, which adds sceNetSetDnsInfo, sceNetSetDns6Info and sceNetGetDns6Info plus a new registered test and debt entry. The overlap bot could not compare some of these branches because of base conflicts, and this PR author has not yet recorded an agreed merge order. Please confirm whether your current changes overlap these exact exports, CMake/test insertion, or debt section, and whether #9506 can land before your PR or should depend on yours. The #9506 author is being asked to record the agreed order in Depends on and the overlap note.

@jagrat04
jagrat04 force-pushed the feat/libSceNet-show-policy branch from de08b37 to 08d4c3c Compare October 22, 2026 04:24
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 22, 2026
@jagrat04

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Thanks for checking! There is no overlap with #9506:

  • Exports: This PR implements sceNetShowPolicy only. It does not touch sceNetSetDnsInfo, sceNetSetDns6Info, or sceNetGetDns6Info.
  • Tests & CMake: Tests are in GuestSceNet.cpp and do not touch CMakeLists.txt or GuestNetDnsInfo.cpp.
  • Debt documentation: Touches Silent stubs in docs/dev/debt/libSceNet.md without affecting the DNS entries in Unknown function info.
  • Merge Order: Either PR can land first without issues (Depends on: none). This branch has also been cleanly rebased onto latest main.

@adriadam10
adriadam10 merged commit 2dc8e45 into boykopovar:main Oct 24, 2026
10 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the signature and success return against shadPS4, the new CheckNetstat assertion (fails on main, where the call throws), the debt entry move to Silent stubs, and xXPBSXx's Windows run (passes with the PR, fails 3/3 on the old Export.cpp); merged.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants