fix(relinker): skip an unreadable sce_module file instead of aborting the conversion #21221
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21221"
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 MarcZX10 on 2026-11-16T00:31:07Z.
What
core/relinker/cli/src/NativeModules.cpp: while scanningsce_module/andsce_modules/for native module candidates,ReadModulescalledReadCandidateHeaderfor every regular file. That function throwsCannot read guest candidatewhen the file cannot be opened, so one unreadable file (permissions, a Windows lock) aborted the whole conversion. The siblingReportUnconvertedNeededin the same file already skips unreadable files. The change makesReadModulesdo the same: it printsSkipping unreadable file: <path>and continues, like the existing SELF and backup-copy skips.ReadCandidateHeaderhad no callers left after the first commit, so it is removed.Tested
root,TryReadCandidateHeaderand theCandidateHeaderfields used are already in scope at the changed lines.git diff --check upstream/main...HEAD: passed.python3 tools/check_conventions.py --base upstream/main: passed.ReadCandidateHeader,TryReadCandidateHeaderor the loop inReadModules(checked on the diffs).Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository