feat(libSceSysmodule): implement sceSysmoduleIsLoadedInternal #6823
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6823"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-16T13:29:50Z.
What
Implement
sceSysmoduleIsLoadedInternalinlibSceSysmodule.Completes the internal sysmodule lifecycle triplet alongside
sceSysmoduleLoadModuleInternalandsceSysmoduleUnloadModuleInternal:SCE_SYSMODULE_ERROR_INVALID_VALUE(0x805A1000) if(id & 0x7fffffffu) == 0.std::runtime_erroron unknown module ID matching neighboring internal sysmodule exports.gLoadCount: returnsSCE_SYSMODULE_ERROR_UNLOADED(0x805A1001) if not loaded or load count is zero, and returns 0 when loaded.GuestSysmodule.cppverifying invalid IDs, unknown IDs, unloaded state, and status transitions through module load and unload lifecycles (includingkFiberModuleIdandkAgcModuleId).Tested
Windows 11, unit test suite (
guest_sysmodule_tests). Verified invalid IDs (0andkInternalFlag), unmapped ID runtime error, unloaded error code, and load/unload transitions.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T13:30:24Z.
Progress report (
36f60df→de1d73c)➖ System libraries: 82.74% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceSysmoduleIsLoadedInternalImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T14:39:27Z.
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.
core/libs/prx/libSceSysmodule/Export.cppcore/libs/tests/GuestSysmodule.cppcore/libs/prx/libSceSysmodule/Export.cppImported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-17T23:58:07Z.
Linux run on head
dc53fe72a, since the CI build jobs were skipped on this head: CachyOS (Arch-based) x86-64, GCC 16.2.1, Release,env -i,ctest -R '^guest_sysmodule$', 3 runs per arm.guest_sysmodulepasses 3/3.sceSysmoduleIsLoadedInternalreturn 0 for any valid known ID, ignoringgLoadCount.guest_sysmoduleaborts 3/3, so this exercises the load-count branch only. The log shows onlySubprocess aborted. By reading, the firstRequireto fail issceSysmoduleIsLoadedInternal(kFiberModuleId) == kModuleUnloadedbefore the load.bd5856170(clean merge; the PR's base82ddae75bwas 889 commits behind it):guest_sysmodulepasses 3/3, andtools/check_conventions.pypasses.Not run: Windows or a PS5.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T11:25:13Z.
Checked the semantics against shadPS4 and prosper (same results as
sceSysmoduleIsLoadedfor known ids; id 0 and unknown ids consistent with the neighbouring*Internalexports), and that the new test lines fail without the load-count check (also shown by @Dextroid17's mutation run).The only conflict with
mainwas adjacent test blocks inGuestSysmodule.cpp; I rebased onto currentmainkeeping both, andguest_sysmoduleplus the scoped suite pass; merged.