Commit Graph
5 Commits
Author SHA1 Message Date
StoneDC a405675ae6 test(libSceDiscId): use canonical public declarations 2026-10-26 14:35:14 +01:00
StoneDC 2d662ce6fd fix(libSceDiscId): keep unsupported exports explicit
CONTRIBUTING.md permits silent stubs only when unblocking a title UI path and when backed by title evidence. Since no title ID evidence demonstrates that a constant no-disc return unblocks a UI path, throw NotImplemented_nid_no_patch from sceDiscIdGet and sceDiscIdGet2 without touching caller memory. Tests assert both calls throw on null and non-null outputs and across flags values while leaving caller buffers untouched, and the debt entry records the unresolved hardware contract.
2026-10-26 14:35:14 +01:00
StoneDC 3fee9d12ac fix(libSceDiscId): report no disc without assuming an argument contract
The previous revision rejected a null output with 0x80D50001 and any nonzero flag with 0x80D50002, but no SDK or console evidence establishes those validation rules, the error codes or their precedence, and the flag argument may be a bitfield. Report SCE_DISC_ID_ERROR_NO_DISC for every pointer and flag value without touching the output, and record the unverified contract in the debt entry. Normalize the new test and CMake file to LF line endings.
2026-10-26 14:35:14 +01:00
StoneDC 85d158234c fix(libSceDiscId): report no disc without assuming an argument contract
The previous revision rejected a null output with 0x80D50001 and any nonzero flag with 0x80D50002, but no SDK or console evidence establishes those validation rules, the error codes or their precedence, and the flag argument may be a bitfield. Report SCE_DISC_ID_ERROR_NO_DISC for every pointer and flag value without touching the output, and record the unverified contract in the debt entry.
2026-10-26 14:35:14 +01:00
StoneDC 2f02e519c3 feat(libSceDiscId): validate arguments and return no disc 2026-10-26 14:35:13 +01:00