9 Commits
Author SHA1 Message Date
Thomas MartinandClaude Opus 5.5 dd9e3bb4d8 Pad scripts: stick-only names (LUP LDOWN LLEFT LRIGHT, RUP RDOWN RLEFT RRIGHT)
The D-pad pushes the left stick too, but always with its button bit. Games
that read the D-pad apart (VP2's battle: left/right split the party) could
not be given a plain stick move from a script. The new names push one stick
to its end with no button bit or pressure, winning on their axis.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 01:10:51 +01:00
ArzarothandClaude Opus 5.5 83da721187 [sc3/libs] Merge main (kernel calls by number, symbol maps, dual-layer CD)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 23:21:44 +01:00
ArzarothandClaude Opus 5.5 4948c2efee [sc3/libs] feat(pad): the rest of libpad SC3 links
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 21:40:43 +01:00
ArzarothandClaude Opus 5.5 a923928434 [con/libmtap] feat(pad): native scePadGetSlotMax, scePadPortClose and scePadEnd
CoN asks the slot count of each port every frame (padProcess); the guest
libpad answers it over its SIF client, which nothing serves natively.
4 on port 1 while the multitap is open, else 1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:47:32 +01:00
ArzarothandClaude Opus 5.5 ba8bf871c3 [con/libmtap] pad: native libmtap, a multitap in port 1
sceMtapInit, PortOpen, PortClose, GetConnection, ChangeThreadPriority and GetModVersion (MTAPMAN 3.0) answered natively,
as TMB's overrides did per port; PadState::multitapAttached (default on) says whether port 1 has one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 19:53:15 +01:00
Thomas Martin 11cb6df323 Add reusable native image, compiled-library and port services 2026-11-06 02:47:13 +01:00
Thomas MartinandClaude Opus 5.5 08d22167d9 Phase 4 M2: pads and players. libpad's multitap (players 1-4 on port 1's slots, port 2's pad idle behind it, as the reference; a slot connected while its player has an input; PadInput by player, rumble through the actuator alignment); bozo_app: the input bindings moved from the team's ps2_input_bindings (input.ini compatible, raylib codes to SDL3 scancodes and gamepad codes, players 3-4), the user folder / logs / crash reports moved from ps2_app (identity set at run time), DevicePad on four hot-plugged SDL3 gamepads with the mapping database, rumble and pressure; free host and bozo-run take scripts for players 2-4
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:28:26 +01:00
Thomas MartinandClaude Opus 5.5 52eb076f85 Native libraries: libpad (phase 3, batch A 4)
Two DualShock 2 controllers on ports 1 and 2 as the reference presents them (state 5 for the frame of a mode command
and the next, IDs 4 then 7, pressure mode 0x79, the D-pad mirrored on the left stick, the reference's pressure order
L1 L2 R1 R2). Their input comes from a PadInput: ScriptInput reads the reference runs' frame-keyed scripts
(bozo-run --pad-script); a PC input source plugs in later, rumble included.

boot: 29,973 pad calls native, match1p (ch1p_frames.txt): 161,084, 0 divergences; both match every frame and record.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:36:26 +01:00
Thomas MartinandClaude Opus 5.5 163e472342 Native libraries: the C library and libm (phase 3, batch A 1)
runtime/libs (bozo/libs): native functions bound by the game's symbol names, on a Guest that journals every write.
bozo-run --native checks each native call against its record (result registers, every byte written, cycles,
operations) and keeps native state in step with the calls the log still answers.

libc: memcpy, memset, strlen, strchr, strcpy, strcmp, strncat, sprintf, printf, malloc/free (the reference's heap:
16-byte first fit from SetupHeap's result, no headers; the reference's libmpeg takes 0x600 per sceMpegCreate),
rand/srand (the reference's 64-bit LCG, not the ELF's newlib rand). libm: sqrt, __ieee754_rem_pio2f (the reference's
single-step reduction), __kernel_sinf/cosf (the Universal CRT's sinf/cosf of x + y; open point L1 elsewhere).

boot: 242,588 calls native, match1p: 10,840,985, 0 divergences; both still match every frame and record.
docs/specs/libraries.md sections 1-3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-03 17:14:34 +01:00