Skip to content

feat(libSceHttp, libSceSystemGesture): implement sceHttpSetCookieEnabled and 3 SystemGesture functions - #4327

Closed
Muskwak wants to merge 1 commit into
boykopovar:mainfrom
Muskwak:feat/implement-scehttp-cookie-and-systemgesture-functions
Closed

Muskwak wants to merge 1 commit into
boykopovar:mainfrom
Muskwak:feat/implement-scehttp-cookie-and-systemgesture-functions

Conversation

@Muskwak

@Muskwak Muskwak commented Oct 12, 2026 •

Copy link
Copy Markdown

What

Implements 4 previously-throwing functions:

  • libSceHttp: sceHttpSetCookieEnabled (validates enable parameter, returns ERROR_INVALID_VALUE for non-0/1 values)
  • libSceSystemGesture: sceSystemGestureGetPrimitiveTouchEventByPrimitiveID, sceSystemGestureGetTouchEventByEventID, sceSystemGestureGetTouchRecognizerInformation

All implementations follow established silent stub patterns documented in TechnicalDebt.md.

Tested

Not tested - implementations follow existing silent stub patterns documented in TechnicalDebt.md.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

…led and 3 SystemGesture functions

Implement sceHttpSetCookieEnabled to validate enable parameter and return
ERROR_INVALID_VALUE for values other than 0 or 1. This removes the throwing
stub that was blocking this call path.

In libSceSystemGesture, implement three previously-throwing functions:
- sceSystemGestureGetPrimitiveTouchEventByPrimitiveID: validates handle,
  returns SCE_SYSTEM_GESTURE_ERROR_INDEX_OUT_OF_ARRAY since no touch
  input is emulated
- sceSystemGestureGetTouchEventByEventID: validates handle, returns
  SCE_SYSTEM_GESTURE_ERROR_INDEX_OUT_OF_ARRAY
- sceSystemGestureGetTouchRecognizerInformation: validates handle and
  pointers, returns 0

All implementations follow established patterns in each library. Updated
TechnicalDebt.md to reflect these changes.

Tested: Not tested - implementations follow existing silent stub patterns
documented in TechnicalDebt.md.
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
#3994 core/libs/prx/libSceHttp/Export.cpp L14-16, L273-282
#4064 core/libs/prx/libSceSystemGesture/Export.cpp L45-49, L66-71, L98-102

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Closing: the diff removes the sceHttpSetAutoRedirect export from libSceHttp/Export.cpp, and the four calls become untested silent successes that no title is shown to reach (#4074 already covers sceHttpSetCookieEnabled). Reopen one library at a time, with the title ID and the log line where it stops on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants