mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-02 12:56:05 +00:00
sceNgs2ReportRegisterHandler and sceNgs2ReportUnregisterHandler stop being throwing stubs: they keep a registry of report handlers, so a title that imports them can register and later drop its handler. Register rejects a null handler with an invalid argument and returns INVALID_OUT_ADDRESS for a null out handle, then stores the report type, handler and user data under a freshly allocated opaque handle. Unregister removes and frees the matching record and throws for a handle that is not registered. The signatures follow SharpProspero and shadPS4's ngs2_report.h, and the 24-byte Ngs2ReportDataHeader passed to a handler is its OrbisNgs2ReportDataHeader. No report is produced yet, so no registered handler is ever invoked.