feat(libSceSysmodule): implement sceSysmoduleUnloadModuleInternalWithArg #7889
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7889"
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-19T12:28:09Z.
What
Implements
sceSysmoduleUnloadModuleInternalWithArgincore/libs/prx/libSceSysmodule/Export.cpp(NIDaKa6YfBKZs4), the counterpart tosceSysmoduleLoadModuleInternalWithArg:(id & 0x7fffffffu) == 0-> returnsSCE_SYSMODULE_ERROR_INVALID_VALUE.findModuleName(id)-> throwsstd::runtime_errorif unknown id, matchingsceSysmoduleLoadModuleInternalWithArgandsceSysmoduleUnloadModuleInternal.gLoadCount[id], returningSCE_SYSMODULE_ERROR_UNLOADEDif not currently loaded.0inretwhen provided.Tested
core/libs/tests/GuestSysmodule.cpp:CheckUnknownIds().0returnsSCE_SYSMODULE_ERROR_INVALID_VALUE.SCE_SYSMODULE_ERROR_UNLOADED.python tools/check_conventions.pypasses 100%.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 repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:28:54Z.
Progress report (
dbac9fa→76c0882)➖ System libraries: 79.81% (+0.0%, +1 implemented functions)
✅ 1 implemented
sceSysmoduleUnloadModuleInternalWithArgImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T12:48:19Z.
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.cppdocs/dev/debt/libSceSysmodule.mdImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T12:55:55Z.
The latest Conventions run still fails because the PR template’s
Checklistsection is missing. Please add the checklist from.github/pull_request_template.mdand rerun the check.Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-19T13:44:14Z.
Added the required
### Checklistsection from.github/pull_request_template.mdto the PR description. The Conventions CI workflow has re-run and passed successfully.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T16:25:30Z.
@ErenYeager1836 On
f677163eecthe full CI run (39274694989) fails to build the tests on both Linux and Windows:kAgcInternalIdisn't defined anywhere onmainor in this PR. The file haskAgcDriverModuleId(0x80000080) andkAgcModuleId(0x80000094). Could you switch lines 323 and 326 to the constant you meant, and make sureguest_sysmodulepasses? The rest of the change looks good. Thanks!Imported from boykopovar/AnyPS5. Originally posted by ErenYeager1836 on 2026-10-19T16:37:05Z.
Thanks @oneandonlydean! Switched the module ID to
kAgcDriverModuleIdacross lines 323–331. Built locally with GCC/Ninja and verified thatguest_sysmodulepasses 100% andtools/check_conventions.pypasses cleanly.