Repository navigation
Conversation
…TED returns Replace 17 NotImplemented_nid_no_patch calls in libScePad with DEVICE_NOT_CONNECTED (0x80920007), matching console behaviour where the host has no special controller at any port type. Changes: - scePadOpenExt: accept all port types, return DEVICE_NOT_CONNECTED instead of throwing on non-special ports - scePadReadExt, GetFeatureReport, SetFeatureReport, OutputReport: return DEVICE_NOT_CONNECTED (imported by PPSA01317) - All scePadVrController* functions: return DEVICE_NOT_CONNECTED (imported by PPSA99177 for PS VR2) - scePadUnknown_n3kSX62fgNo: return 0 (imported by PPSA01317) - scePadSetAngularVelocityBiasCorrectionState: accept enabled value without throwing (bias correction not modelled) Update docs/dev/debt/libScePad.md to reflect each function's new behaviour and cite the PPSA references. Signed-off-by: Sebastian <coptergui@gmail.com>
scePadReadState and scePadIsRemoteController returned bare 0 instead of PAD_OK, inconsistent with the rest of the library. Both now return PAD_OK explicitly. All other functions already use proper error/success codes.
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.
Replace all remaining NotImplemented_nid_no_patch stubs in libScePad with proper return values, and fix two functions returning bare 0 instead of PAD_OK.
Changes to core/libs/prx/libScePad/Export.cpp
17 NotImplemented stubs replaced with proper error codes:
Consistency fix:
Changes to docs/dev/debt/libScePad.md
Each function's new behaviour documented with PPSA references. "Other port types throw" changed to "all port types return DEVICE_NOT_CONNECTED". Added entries for each previously-thrown function.
State