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]>
The SDK sends a SIF command and the IOP's sifcmd sends the bytes back by SIF DMA; with no IOP the guest code's
request is never answered and the EE buffer stays as it was. Natively the bytes come from the IOP host's memory
(SifState::receive, a port's provider) at once; the receive record is filled; 0.
Steambot Chronicles' file loader reads each archive into an IOP buffer (sceCdReadIOPm) and takes every file back
with sceSifGetOtherData: without it the map's models and textures were zeros (ImdGetObjFirst: Not IMD).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A state restored the cards' contents but not their host folder, so a game's saves after
--load-state stayed in memory and were lost. Cards kept in a folder are now taken back from
the folder when a state loads (a console's memory card is not part of a save state); cards in
memory stay the state's.
Archive::end closed a section before checking its size: a reader trying an older layout (the
libraries' sif section) that failed there rewound into a nameless section and the load failed
further on. The check now comes first. Tests for both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
5030dbb made sceGsSetDefDispEnv and the Z buffer's address read the display mode back from scratchpad 0x100, where
the reference also leaves ResetGraph's parameters. The game's own code reuses that scratchpad afterwards (TMB from its
fourth frame), so SMODE2 and DISPLAY came out non-interlaced where the reference's are interlaced. TMB's pinned boot
check (tmb-check, boot.clg) diverged there at frame 4; it passes again: 3000 frames, all 4,650,558 records, draw lists
on every checked frame. Libraries::gsVideo keeps them (saved in the states); the scratchpad still gets them.
sceGsExecStoreImage's refusal names its caller.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The test added with TTA's integration called sceMpegInit and the others
unconditionally. They are native only in builds with FFmpeg, so master's CI
failed in libs. Skipped there.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Conflicts: libmpeg's Nodata end becomes a Resume record that keeps TTA's SDK callback (a[2] flags:
1 work area, 2 SDK callback; 0 is the reference's behaviour); cdvdman keeps JC2's drive commands and
TTA's sceCdSearchFile. TTA's state the archive did not have: libpad2's sockets, the IOP software
registers and libmpeg's inputEnded.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A card kept in a host folder now lists its files in the order they were
created (the host's creation time where it keeps one, else the write time;
then the name), and a file made again keeps its place. JC2's save list
reads each slot at a fixed position after icon.sys and the three icons, so
an alphabetical listing showed every slot empty. BOZO_TRACE_MC also logs
each read's size and buffer.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
libmpeg answered as TMB's reference build does: its sceMpeg layout (with
TMB's addresses: 0x1717bc, the table at 0x171800, 0x171904), blocks from the
game's heap, its results and its pacing. The Third Age uses libmpeg the SDK's
way: raw MPEG-2 video added with sceMpegAddBs from its Nodata callback, its
own 29.97 pacing, the end when the callback returns 0.
- sceMpegAddBs(mp, data, bytes): ((bytes + 19) >> 4) << 4 bytes of coded
video to the decoder (what the SDK sends to the IPU); wakes a thread
waiting in sceMpegGetPicture once a picture is decodable; 1.
- MpegOptions (Libraries::mpegOptions, kept across sceMpegCreate), all
defaulting to today's behaviour:
- referenceLayout off: nothing written outside the game's work area (the
Nodata data is its first 32 bytes), the SDK's results (Create/Delete 1,
AddCallback the previous callback);
- paced off: GetPicture gives each picture at once, IsEnd answers from the
stream (input ended, all pictures out);
- sdkNodata: the Nodata callback gets the data given to AddCallback in a2,
and a 0 it returns ends the input.
Test mpegSdkModel in libs_tests. TMB's path is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
For games on a later SDK that read their controllers through libpad2 over
libdbc (The Third Age): scePad2Init/End, scePad2CreateSocket/DeleteSocket,
scePad2GetState (1 with a controller), scePad2GetButtonProfile (the DualShock
2's, four bytes), scePad2Read (the 18-byte report: buttons active low, sticks
RX RY LX LY, the twelve pressures in the controller's order), and
scePad2GetButtonInfo; libvib's sceVibGetProfile (0x03) and sceVibSetActParam
(the motors as libvib packs them, to the input's rumble); sceDbcInit/End.
The controllers are libpad's: the same ports, players and PadInput, so the
PC's devices and the frame-keyed scripts drive both libraries. Behaviour read
from The Third Age's libpad2 and how its pad manager uses each answer.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Retain current main sceCdBreak implementation and add the Dark Cloud cancellation regression: sync becomes idle, copied bytes remain, and a subsequent read clears abort status and establishes its own completion.
The native service is already present upstream in 63caf16. Retain the existing pinned base while adding command 0xA completion, cursor and on-disk reload coverage.