Commit Graph
85 Commits
Author SHA1 Message Date
Dean a75b8aaa49 Merge pull request #13130 from hypermoist/feat/np-mutex-cond
feat(libSceNpCommon): implement sce::np::Mutex and sce::np::Cond
2026-11-06 06:59:31 +13:00
Dean d23df92b38 Merge pull request #15699 from javierUDP/fix/npcommon-runtime-test-macos
build(libSceNpCommon): compile the runtime test on macOS
2026-11-06 01:29:39 +13:00
Dean e81bd23795 Merge pull request #12759 from legendary-cookie/test/np-user-id-list
refactor(libSceNpCommon): read sceNpUserGetUserIdList users into a UserServiceRegisteredUserIdList
2026-11-06 00:05:49 +13:00
Dean 52794e13dc Merge pull request #12758 from legendary-cookie/test/np-kernel-memory
test(libSceNpCommon): cover sceNpAllocateKernelMemoryNoAlignment
2026-11-06 00:05:30 +13:00
Dean Galvin 6b8ef0f5a8 Merge branch 'main' 2026-11-05 22:14:50 +13:00
Dean c48347be84 Merge pull request #12852 from hypermoist/feat/np-ringbuf
feat(libSceNpCommon): implement sce::np::RingBuf and RingBufMemory
2026-11-05 21:50:16 +13:00
Dean f2f4cc2e1e Merge pull request #15048 from xXPBSXx/fix/np-strncpy-null-zero
fix(libSceNpCommon): treat a null source with a zero limit as empty in sceNpStrncpyToBuf
2026-11-05 17:00:22 +13:00
javierUDP 5208b6c11e build(libSceNpCommon): compile the runtime test on macOS
TestTitleSecretObjects calls the deleting destructor through
reinterpret_cast<Destructor>(owned->vtable[1]). The vtable entry is a
const void*, and AppleClang rejects a reinterpret_cast that casts the
qualifier away. The other six vtable calls in this file go through
const_cast<void*> first; this one now does too.
2026-11-04 04:22:23 -03:00
hypermoist 757c6c6fcd Merge remote-tracking branch 'upstream/main' into feat/np-ringbuf 2026-11-03 21:24:13 +13:00
Dean 9fe71880ad Merge pull request #13978 from LeandroLP23/test/np-common-conditions-event-flags
test(libSceNpCommon): wake condition waiters and mask and cancel event flags
2026-11-03 21:10:48 +13:00
Dean 2a7e4a8fc6 Merge pull request #14318 from MarcZX10/fix/np-strncpy-read-past-maxlength
fix(libSceNpCommon): copy at most the length limit in sceNpStrncpyToBuf
2026-11-03 08:48:11 +13:00
Dean Galvin 4d75a8a77a Merge main b2627ce36d into #13130 (996212142a) 2026-11-03 08:46:39 +13:00
Dean 8bc49558d2 Merge pull request #12919 from hypermoist/feat/np-title-secret
feat(libSceNpCommon): implement sce::np::NpTitleSecret
2026-11-03 06:25:36 +13:00
Dean 4662fbc62a Merge pull request #12839 from hypermoist/feat/np-allocator-ex
feat(libSceNpCommon): implement the _sceNpAllocatorEx helpers
2026-11-03 05:14:22 +13:00
Dean d0dcbc30a4 Merge pull request #12818 from hypermoist/feat/np-util-xml-escape
feat(libSceNpCommon): implement sceNpUtilXmlEscape and sceNpUtilXmlUnescape
2026-11-03 05:13:35 +13:00
xXPBSXxandClaude Sonnet 5.5 d267b8dcb1 fix(libSceNpCommon): test sceNpStrncpyToBuf with a null source at sizes 0 and 1 and record the console fault
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-02 15:40:29 +01:00
Dean Galvin 7ade1cc60a Merge commit '4f64f81ef7b4bca975b4b9f3dfd15dfff56f716f' into HEAD
# Conflicts:
#	core/libs/prx/libSceNpCommon/CMakeLists.txt
2026-11-03 02:42:52 +13:00
Dean cd673bd828 Merge pull request #11601 from x-labb/fix-11567-callout-self-term
fix(libSceNpCommon): refuse to terminate a callout context from its own callout
2026-11-03 01:25:59 +13:00
xXPBSXxandClaude Sonnet 5.5 cbcb212fde fix(libSceNpCommon): treat a null source with a zero limit as empty in sceNpStrncpyToBuf
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-02 11:19:07 +01:00
hypermoist 996212142a Merge remote-tracking branch 'upstream/main' into feat/np-mutex-cond
# Conflicts:
#	core/libs/prx/libSceNpCommon/include/Api.hpp
2026-11-02 02:36:28 +13:00
hypermoist 253236e07c Merge remote-tracking branch 'upstream/main' into feat/np-ringbuf
# Conflicts:
#	core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	docs/dev/debt/libSceNpCommon.md
2026-11-02 01:20:07 +13:00
hypermoist 8a39ee6955 Merge remote-tracking branch 'upstream/main' into feat/np-util-xml-escape
# Conflicts:
#	core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	docs/dev/debt/libSceNpCommon.md
2026-11-02 01:20:05 +13:00
Dean 4317481a47 Merge pull request #12825 from hypermoist/feat/np-util-jid
feat(libSceNpCommon): implement sceNpUtilParseJid and sceNpUtilJidToNpId
2026-11-02 00:22:13 +13:00
MarcZX10 6739179eed test(libSceNpCommon): cut an unterminated sceNpStrncpyToBuf source at the length limit
TestHexAndCopies now copies a source whose first terminator comes after the length limit, and expects exactly the first four characters. On the previous copy helper the new check aborts; with the fix guest_np_common_runtime passes. Both results come from the archive build described in the PR body.
2026-11-01 08:43:21 +00:00
Dean a98f9b6282 Merge pull request #13272 from wrocketdev/test/npcommon
test(libSceNpCommon): cover event flag clear and cancel and condition wakeups
2026-11-01 10:23:05 +13:00
LeandroLP23andClaude Opus 5.5 11e2833b9b test(libSceNpCommon): wake condition waiters and mask and cancel event flags
The NP condition wrappers were only tested without a waiter, and
sceNpCondWait, the SignalAll and SignalTo forms and every sceNpLwCond call
had no test. A new wake case parks real threads in sceNpCondWait and
sceNpLwCondWait and releases them with Signal, SignalAll and SignalTo,
then destroys the conditions. The runtime event flag test now masks bits
with sceNpClearEventFlag and sets a pattern with sceNpCancelEventFlag,
which reports no waiters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 15:22:15 +01:00
AdriàandClaude Sonnet 5.5 3a8e811a96 fix(libSceNpCommon): cast the remaining const virtual table slots without casting away const
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-31 10:59:12 +01:00
Emanuele a73dbff3e8 fix(libSceNpCommon): cast the const virtual table slots without casting away const 2026-10-31 10:59:08 +01:00
hypermoist 9bf956b421 Merge remote-tracking branch 'upstream/main' into feat/np-mutex-cond
# Conflicts:
#	core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp
#	core/libs/prx/libSceNpCommon/Runtime.cpp
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	core/libs/tests/GuestNpCommonRuntime.cpp
#	docs/dev/debt/libSceNpCommon.md
2026-10-31 19:16:43 +13:00
hypermoist cbb5a530e2 Merge remote-tracking branch 'upstream/main' into feat/np-title-secret
# Conflicts:
#	core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp
#	core/libs/prx/libSceNpCommon/Runtime.cpp
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	core/libs/tests/GuestNpCommonRuntime.cpp
#	docs/dev/debt/libSceNpCommon.md
2026-10-31 19:16:42 +13:00
hypermoist 42c4590e71 Merge branch 'feat/np-allocator-ex' into feat/np-ringbuf
# Conflicts:
#	core/libs/prx/libSceNpCommon/CMakeLists.txt
#	core/libs/prx/libSceNpCommon/PendingExportsRound7.cpp
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	core/libs/tests/GuestNpCommonRuntime.cpp
#	docs/dev/debt/libSceNpCommon.md
2026-10-31 19:16:40 +13:00
hypermoist 49b912222e Merge remote-tracking branch 'upstream/main' into feat/np-allocator-ex
# Conflicts:
#	core/libs/tests/GuestNpCommonRuntime.cpp
2026-10-31 19:16:23 +13:00
hypermoist c5094d4235 Merge remote-tracking branch 'upstream/main' into feat/np-util-jid
# Conflicts:
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	docs/dev/debt/libSceNpCommon.md
2026-10-31 19:15:45 +13:00
hypermoist ad1b7612f6 Merge remote-tracking branch 'upstream/main' into feat/np-util-xml-escape
# Conflicts:
#	core/libs/tests/GuestNpCommonRuntime.cpp
2026-10-31 19:15:44 +13:00
x-labb 22d478c78d fix(libSceNpCommon): refuse to terminate a callout context from its own callout
sceNpCalloutTermCtx called from a callout of the same context could not join the worker thread, destroyed the context's mutex and condition anyway, and returned. The worker then locked the destroyed mutex and the host crashed. The call now throws, and the gap is recorded in the library's technical debt.
2026-10-31 00:58:20 +01:00
hypermoistandClaude Opus 5.5 79624b828c feat(libSceNpCommon): implement sce::np::NpCommId and sceNpUtilParseTitleId
The constructors, destructors, Clear, IsEmpty, Equals, Parse, Build and the
comparison operators of sce::np::NpCommId, and the C export
sceNpUtilParseTitleId they use, follow libSceNpCommon.sprx of firmware
13.60, checked against 26,501 firmware results.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 23:08:07 +01:00
Adrià c84f79ed3b Merge pull request #13451 from BunnyFl/feat/libscenpcommon-json-parser
feat(libSceNpCommon): implement the JSON parser family
2026-10-30 22:56:24 +01:00
hypermoistandClaude Opus 5.5 c9e6fe5d17 feat(libSceNpCommon): implement sce::np::RefObject
The constructors, destructors, AddRef and Release of sce::np::RefObject
follow libSceNpCommon.sprx of firmware 13.60, checked against 7,200
firmware results.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 21:41:08 +01:00
hypermoistandClaude Opus 5.5 e8a765b48d feat(libSceNpCommon): implement the sce::np::StreamReader and StreamWriter helpers
Read, ReadAll, ReadData, SkipAll and SkipData on StreamReader, and Write,
WriteData and WriteFilledData on StreamWriter, with and without a StreamCtx,
follow libSceNpCommon.sprx of firmware 13.60, checked against 20,426
firmware results.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 18:27:47 +01:00
BunnyFlandClaude Opus 5.5 2cf3e71b13 test(libSceNpCommon): attribute the 16th-level close to firmware 13.42, not the console
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 18:06:20 +01:00
BunnyFlandClaude Opus 5.5 82e8fa7539 test(libSceNpCommon): pin the firmware's lost close inside a 16th-level object
Firmware 13.42 keeps the type of the 16th nested container in the context
slot that also holds the saved parser state, so a call that ends inside a
16th-level object leaves the outermost object open. The parser here does
the same; the test pins it, and the debt file records it together with
where the parser's behaviour comes from.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 17:52:47 +01:00
BunnyFlandClaude Opus 5.5 2087b15d4d feat(libscenpcommon): implement the JSON parser family
sceNpJsonParse, sceNpJsonParseBuf and sceNpJsonParseEx with their
Init calls, and the sceNpServerErrorJson exports, follow firmware
13.42: a resumable byte-by-byte parser that walks a rule table level
by level (member keys compared without case, array elements, keyless
wildcard entries until the first unmatched container, a descend flag)
and calls the caller's handler for each matched container, key and
value. The Buf form uses caller key and value buffers, and the Ex form
also reports the stream offset of each event, delivers long strings
and numbers in pieces and reports everything when no rules are given.
The server error calls read error.code (or a top-level code for the
Multi form) and fall back to the HTTP status.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 15:55:02 +01:00
hypermoist 724c31161b Merge remote-tracking branch 'upstream/main' into feat/np-allocator-ex
# Conflicts:
#	core/libs/tests/GuestNpCommonRuntime.cpp
2026-10-31 01:53:25 +13:00
hypermoist 5f43bd0135 Merge remote-tracking branch 'upstream/main' into feat/np-ringbuf
# Conflicts:
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	core/libs/tests/GuestNpCommonRuntime.cpp
#	docs/dev/debt/libSceNpCommon.md
2026-10-31 01:49:07 +13:00
hypermoist 686a5ca0be Merge remote-tracking branch 'upstream/main' into feat/np-mutex-cond
# Conflicts:
#	core/libs/prx/libSceNpCommon/Runtime.cpp
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	core/libs/tests/GuestNpCommonRuntime.cpp
#	docs/dev/debt/libSceNpCommon.md
2026-10-31 01:38:38 +13:00
hypermoist 93fbebef0a Merge remote-tracking branch 'upstream/main' into feat/np-memory-stream
# Conflicts:
#	core/libs/prx/libSceNpCommon/Runtime.cpp
#	core/libs/prx/libSceNpCommon/include/Api.hpp
#	core/libs/tests/GuestNpCommonRuntime.cpp
#	docs/dev/debt/libSceNpCommon.md
2026-10-31 01:27:48 +13:00
hypermoistandClaude Opus 5.5 38bd414bee feat(libSceNpCommon): implement sce::np::MemoryStreamReader and MemoryStreamWriter
Constructors, destructors, Read and Write follow libSceNpCommon.sprx of
firmware 13.60, checked against 13,400 firmware results.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 00:33:51 +13:00
ThomasandClaude Opus 5.5 7dc229b9ab test(libSceNpCommon): cover event flag clear and cancel and condition wakeups
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 11:27:11 +01:00
hypermoist c776cd1d66 Merge branch 'feat/np-title-id-object' into feat/np-title-secret 2026-10-30 23:12:25 +13:00
hypermoist 39318d9ed3 Merge remote-tracking branch 'upstream/main' into feat/np-mutex-cond 2026-10-30 23:12:19 +13:00