relinker: guard " -> FAILED" output behind dependencyDiagnostics (#3307) #3312

Closed
Jnbla6 wants to merge 1 commit from upstream-pr/3312 into main
Jnbla6 commented 2026-10-11 06:58:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Jnbla6 on 2026-10-11T06:58:39Z.


Fixes #3307

Summary

In WindowsEntryStubBuilder::Build, the "Loading PRX: " prefix (loading) and the " -> OK\n" suffix (loaded) are only emitted when dependencyDiagnostics (--dependency-diagnostics) is enabled, whereas writeString(loadFailed, true) (" -> FAILED\n") on the LoadLibraryExW failure path was emitted unconditionally.

Guard writeString(loadFailed, true) behind if (dependencyDiagnostics) so that missing-module failures without --dependency-diagnostics do not start with an orphan -> FAILED line on stderr or in anyps5.log (#3282).

Changes

  • src/elfpatcher/windows/WindowsEntryStubBuilder.cpp: wrap writeString(loadFailed, true) in if (dependencyDiagnostics).
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4817241218 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3312). Originally posted by [Jnbla6](https://github.com/Jnbla6) on 2026-10-11T06:58:39Z. --- Fixes #3307 ### Summary In `WindowsEntryStubBuilder::Build`, the `"Loading PRX: "` prefix (`loading`) and the `" -> OK\n"` suffix (`loaded`) are only emitted when `dependencyDiagnostics` (`--dependency-diagnostics`) is enabled, whereas `writeString(loadFailed, true)` (`" -> FAILED\n"`) on the `LoadLibraryExW` failure path was emitted unconditionally. Guard `writeString(loadFailed, true)` behind `if (dependencyDiagnostics)` so that missing-module failures without `--dependency-diagnostics` do not start with an orphan ` -> FAILED` line on `stderr` or in `anyps5.log` (#3282). ### Changes - `src/elfpatcher/windows/WindowsEntryStubBuilder.cpp`: wrap `writeString(loadFailed, true)` in `if (dependencyDiagnostics)`.
github-actions[bot] commented 2026-10-11 06:58:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T06:58:50Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106459030 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3312#issuecomment-6106459030). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-11T06:58:50Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!3312
No description provided.