Repository navigation
feat(libSceAgc): implement sceAgcDebugRaiseException - #3448
Merged
adriadam10 merged 1 commit intoOct 11, 2026
Merged
Conversation
sceAgcDebugRaiseException (NID T6xuVw0KUJo) now logs the exception id with APS5_LOG_OUT and returns 0, as libkernel's sceKernelDebugRaiseException does. Palworld PPSA23126 (boykopovar#2598) and 007 First Light PPSA11386 (boykopovar#2523) import it; neither is shown calling it. OpenAGC 3c7e8072 (src/game_compat.c) returns 0 and says the function is a no-op on retail hardware; the ud2 trap it describes for development hardware is not reproduced. KytyPS5 6f0cddd4 (src/libs/agc.cpp) takes a uint32 exception_id, logs it and returns 0. OpenAGC declares no arguments, but a body that only traps reads none, so the uint32 is kept and the conflict is recorded in TechnicalDebt. The aerolib name is from zecoxao/sce_symbols 2883963a; ps5-payload-dev/sdk f5d40f02 has only an untyped stub. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Oct 11, 2026
|
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.
|
Collaborator
|
Checked the build and ctest of libSceAgc (20/20, |
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Carries @screamm's #3360 (the author is under the intake threshold). The commit is theirs, unchanged (
9bec1907).sceAgcDebugRaiseException(libSceAgc, NIDT6xuVw0KUJo) is aNotImplemented_nid_no_patchstub. Palworld (PPSA23126, #2598) and 007 First Light (PPSA11386, #2523) import it.Misc/src/Debug.cpp:int sceAgcDebugRaiseException(std::uint32_t exceptionId)logs the exception id withAPS5_LOG_OUTand returns 0, the behaviour of retail hardware per OpenAGCgame_compat.c(dev kits trap withud2, which is not reproduced), matching the modelsceKernelDebugRaiseExceptionin libkernel already follows.uint32_targument follows KytyPS5's signature. The design decisions and sources are recorded in TechnicalDebt.Unimplemented.cpp: the old stub is removed.agc_commands(Commands.cpp): gainstestDebugRaiseExceptiontesting thatsceAgcDebugRaiseException(0x1234abcdu)returns 0 and does not throw.Closes #3360.
Tested
tools/check_conventions.py --base origin/mainandgit diff --checkpass cleanly.agc_initializationandagc_commands3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"513/513 pass. Withmain'sUnimplemented.cppthe new test fails.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)