Skip to content

fix(libs): values measured on a PS5 (firmware 13.40) from inside retail games - #7965

Merged
oneandonlydean merged 15 commits into
boykopovar:mainfrom
frankea:ps5-measured-1340
Oct 22, 2026
Merged

oneandonlydean merged 15 commits into
boykopovar:mainfrom
frankea:ps5-measured-1340

Conversation

@frankea

@frankea frankea commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What

Values measured on a PS5 on firmware 13.40 on 2026-10-19. Library calls were made inside retail game processes (Gran Turismo 7 PPSA01317, MLB The Show 25 PPSA23479) through ptrace remote calls: a payload attaches to the game, borrows a stopped thread, calls the export the game itself resolved and restores the thread. GPU results come from command buffers built by the probe and submitted with sceAgcDriverSubmitDcb / sceAgcDriverSubmitAcb from inside GT7, including a gfx1013 compute kernel assembled with LLVM 18. sceKernelGetEventError was measured in a plain payload process. Three code changes where the console disagrees with main (the touch pad values are on main through #8138), and debt entries rewritten with the measured values where it agrees or where the code stays as it is.

  • libkernel sceKernelGetEventError. It now returns 0 when fflags is 0 and 0x80020000 | fflags otherwise, whatever flags and data hold, as fpPS4 does. Main returned data when EV_ERROR was set. Console: {flags 0x4000, fflags 0, data 22} 0, {0x4000, 0, -1} 0, {0x4000, 0, 0x80020016} 0, {0, 0, 0} 0, {0x4000, 5, 0} 0x80020005, {0x4000, 5, 22} 0x80020005, {0, 7, 22} 0x80020007, {0x8000, 3, 9} 0x80020003. fflags above 0xFFFF were not measured, and that is where OR and addition differ, so they throw. The debt entry is rewritten and points out that video-out events, which carry their count in fflags, now get 0x80020001 and up.
  • libScePad controller information. scePadGetControllerInformation and scePadGetExtControllerInformation now report stick dead zones 13 / 13 (main 2 / 2), which is what GT7's DualSense handle got on the console. Its touch pad answered 1920 x 1080 at 44.86, the values fix(libScePad): report the DualSense touchpad resolution #8138 put on main, and connection type 0, connected count 1, connected 1 and device class 0 already matched. The libScePad debt entry "Touchpad resolution" said the console's values were not measured; it now gives them.
  • libSceSystemService sceSystemServiceParamGetInt. Unknown parameters now return 0x80A10003 without writing, where main wrote 0 and returned 0. Parameters 7 (game parental level) and 1000 (enter button assignment) are no longer answered, because inside GT7 both returned 0x80A10003. Console: 0, 6, 7, 8-20, 401, 999, 1000 and 1001-1008 returned 0x80A10003, and a null value pointer did too, as main already does. 1 to 5 and 400 answered (1, 2, 0, -300, 1, 1 on that console), and 100 answered the value 0, which this PR keeps as an explicit case. A new debt entry records this.
  • Debt only, libSceVideoOut. sceVideoOutGetResolutionStatus: the 48-byte layout is confirmed (GT7's handle 0x4e100100 on a 4K TV: 3840 x 2160, pane 3840 x 2160, refreshRate 3, screenSizeInInch 60.0f, flags 0). The repo still writes screenSizeInInch 0. sceVideoOutGetOutputStatusWithVrr: bytes 48-53 were the 16-bit values 48, 60, 60 on a TV that takes 120 Hz (the repo writes 0), and the null 0x80290002 and unknown-handle 0x8029000B codes match. sceVideoOutIsOutputSupported: the unsupported mode set matches exactly. Mode 18 answered 0x8029001E on this console, the third console measured, so it stays a throw. sceVideoOutGetVblankStatus: the third u64, reserved here and written 0, is a running counter on the console. GT7's own call returned 0x1c485ffaadc at a processTime of 941 s, about 970 s at ~2 GHz, which fits a TSC. This is a new entry.
  • Debt only, libSceAgcDriver. "WRITE_DATA with DST_SEL 3": on the console a WRITE_DATA with DST_SEL 3 (control 0x00100300, also 0x06100300 with cache policy 3) did not write its label in direct memory, even after a RELEASE_MEM with GL2 write-back and invalidate (0x00300514). A GDS COPY_DATA at that address returned 0, while DST_SEL 1, 2 and 5 wrote. The console's own sceAgcDcbWriteData(dst 6) emits 0x00110300, DST_SEL 3, as the repo's builder does. This PR records the measurement and does not change the code, because Killzone's fence still needs some path to the label that is not established. "COPY_DATA from the GPU clock": SRC_SEL 9 and the RELEASE_MEM DATA_SEL 3 timestamp are the same counter, measured at 98.0 and 99.8 MHz over two 1.1 s CPU intervals, so the repo's 10 ns model holds. New entry for sceAgcDriverSubmitAcb: queues 0x20, 0x30, 0x40, 0x50, 0x57 and 0x58 returned 0 and ran a buffer (the repo throws for 0x58), and queue 0x1F faulted inside the console's driver.
  • Debt only, shader. "Flat aperture bases" and the scalar aperture sources are now measured: src_shared_base / src_shared_limit 0x80000000_00000000 / 0x80000000_FFFFFFFF and src_private_base / src_private_limit 0x70000000_00000000 / 0x70000000_FFFFFFFF, the values the code already uses. s_memtime advanced 22.35 times faster than s_memrealtime (44,041,632 against 1,970,792 ticks over the same loop), which puts the core clock at ~2.23 GHz against the 100 MHz reference. The console runs alignment mode DWORD. A raw buffer_load_dword with the V# base 1 byte past a dword, or an aligned base with voffset 1, returned the aligned dword 0x44332211 (not 0x55443322). s_buffer_load_dword returned 0x44332211 as the repo does, and buffer_atomic_add at byte 0x0D updated the dword at 0x0C as the repo does. The raw-access difference is recorded in "V# bases off a DWORD boundary" with a Closes when:. The recompiler is not changed in this PR.

Measurement logs and the full tables: the probe and the per-run logs can be attached on request.

Tested

Ubuntu 24.04 x86-64 container (GCC, Ninja, Release, BUILD_TESTING=ON) under Rosetta on macOS, on main 892a4f1 + these commits: ctest -R "^(guest_pad|guest_equeue_events|guest_system_service_language|pad_input|pad_sdl|pad_input_mapping|pad_keyboard_mouse)$": 100% tests passed, 0 tests failed out of 7. guest_equeue_events checks every console case above plus fflags 0xFFFF (0x8002FFFF) and a throw for 0x80000001. guest_pad checks the dead zones of both information calls, next to #8138's touch pad checks. guest_system_service_language checks that ids 0, 6, 7, 8, 20, 401, 999, 1000, 1001 and 1008 return 0x80A10003 without writing and with a null pointer, and that 100 answers 0. Since 83a268a libkernel refuses a host CPU without AVX2/BMI2, which the Rosetta container is, so the CheckHostCpu call in HostCpu.cpp was bypassed locally for this run only and is not part of the PR. python3 tools/check_conventions.py --base origin/main reports 0 errors. Its warnings are debt-length on entries that were already over 1000 characters before this PR, plus "V# bases off a DWORD boundary" (1113 characters) and s_memtime (1311). Not tested: Windows and any title.

Checklist

  • Based on current main; no other open PR implements the same functions (feat(pad): support up to 4 controllers with dynamic user discovery #7881 moves the pad information code and keeps the old dead zones)
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in the technical debt file
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (the AGC driver, VideoOut and shader changes are documentation only)
  • AI-assisted: yes (Claude Code)

…r as a PS5 does

On a PS5 (firmware 13.40) sceKernelGetEventError returned 0 for fflags 0 and 0x80020000 | fflags otherwise, whatever flags and data held: {0x4000, 0, 22} -> 0, {0x4000, 5, 0} -> 0x80020005, {0x4000, 5, 22} -> 0x80020005, {0, 7, 22} -> 0x80020007, {0x8000, 3, 9} -> 0x80020003. fflags above 0xFFFF were not measured and throw.
… PS5 reports

Inside Gran Turismo 7 on a PS5 (firmware 13.40) scePadGetControllerInformation for the DualSense reported touch pad resolution 1920 x 1080 and stick dead zones 13 and 13; pixel density 44.86 already matched.

Touch y coordinates now span that height: a host touch pad scales y to 0..1079 and the view-button and injected touches sit at y 540 instead of 0..942 and 471.
…parameters as a PS5 does

Inside Gran Turismo 7 on a PS5 (firmware 13.40) parameters 7 (game parental level) and 1000 (enter button assignment) returned 0x80A10003 like every other unknown parameter; 1 to 5, 100 and 400 answered.
… a PS5

Measured on firmware 13.40 inside Gran Turismo 7 through ptrace remote calls and GPU buffers submitted from the game.
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 19, 2026
…measured-1340

# Conflicts:
#	core/libs/tests/GuestPad.cpp
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6337 docs/dev/debt/libScePad.md L29
PR 7814 docs/dev/debt/libSceVideoOut.md L19-20
PR 7888 docs/dev/debt/shader.md L151-153
PR 8373 docs/dev/debt/libkernel.md L233-234
PR 8563 docs/dev/debt/libSceAgcDriver.md L177-178
PR 8564 docs/dev/debt/libSceAgcDriver.md L177-178
PR 9591 core/libs/prx/libSceSystemService/Export.cpp L312-313, L315
core/libs/tests/GuestSystemServiceLanguage.cpp L51, L53, L88-90
docs/dev/debt/libSceSystemService.md L152
PR 9770 core/libs/prx/libSceSystemService/Export.cpp L312-318

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4040 docs/dev/debt/libSceVideoOut.md
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5021 docs/dev/debt/libkernel.md
docs/dev/debt/shader.md
PR 5038 core/libs/prx/libScePad/Export.cpp
docs/dev/debt/libScePad.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5371 docs/dev/debt/shader.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 5941 docs/dev/debt/shader.md
PR 6009 docs/dev/debt/shader.md
PR 6010 docs/dev/debt/shader.md
PR 6044 core/libs/tests/GuestEqueueEvents.cpp
core/libs/tests/GuestPad.cpp
core/libs/tests/GuestSystemServiceLanguage.cpp
PR 6146 docs/dev/debt/libSceAgcDriver.md
PR 6149 docs/dev/debt/libkernel.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6235 docs/dev/debt/shader.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/shader.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/shader.md
PR 6469 docs/dev/debt/libkernel.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6488 docs/dev/debt/shader.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6740 docs/dev/debt/libkernel.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6830 docs/dev/debt/libkernel.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6879 docs/dev/debt/libkernel.md
docs/dev/debt/shader.md
PR 6924 docs/dev/debt/shader.md
PR 6946 docs/dev/debt/libSceAgcDriver.md
PR 6959 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/shader.md
PR 7088 docs/dev/debt/libkernel.md
PR 7105 docs/dev/debt/libkernel.md
PR 7149 docs/dev/debt/libkernel.md
PR 7201 core/libs/prx/libSceSystemService/Export.cpp
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7447 docs/dev/debt/libkernel.md
PR 7509 core/libs/tests/GuestEqueueEvents.cpp
docs/dev/debt/libkernel.md
PR 7565 docs/dev/debt/libkernel.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7605 docs/dev/debt/libkernel.md
PR 7618 docs/dev/debt/libSceAgcDriver.md
PR 7642 docs/dev/debt/libSceAgcDriver.md
PR 7653 docs/dev/debt/libkernel.md
PR 7684 docs/dev/debt/shader.md
PR 7803 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/shader.md
PR 7893 docs/dev/debt/libSceAgcDriver.md
PR 7978 docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8077 docs/dev/debt/shader.md
PR 8281 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/shader.md
PR 8344 docs/dev/debt/libkernel.md
PR 8395 docs/dev/debt/libSceAgcDriver.md
PR 8406 docs/dev/debt/shader.md
PR 8424 docs/dev/debt/libSceAgcDriver.md
PR 8520 docs/dev/debt/libkernel.md
PR 8527 docs/dev/debt/libSceAgcDriver.md
PR 8538 docs/dev/debt/libSceAgcDriver.md
PR 8553 docs/dev/debt/libkernel.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 8625 docs/dev/debt/shader.md
PR 8651 core/libs/prx/libSceSystemService/Export.cpp
core/libs/prx/libSceSystemService/SystemService.hpp
docs/dev/debt/libSceSystemService.md
PR 8670 docs/dev/debt/libkernel.md
PR 8672 docs/dev/debt/libSceAgcDriver.md
PR 8921 docs/dev/debt/libkernel.md
PR 8927 docs/dev/debt/libSceVideoOut.md
PR 8999 docs/dev/debt/libSceAgcDriver.md
PR 9105 docs/dev/debt/libkernel.md
PR 9157 docs/dev/debt/libSceVideoOut.md
PR 9178 core/libs/prx/libScePad/Export.cpp
core/libs/tests/GuestPad.cpp
docs/dev/debt/libScePad.md
PR 9193 docs/dev/debt/shader.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9392 docs/dev/debt/libkernel.md
PR 9508 docs/dev/debt/libSceAgcDriver.md
PR 9509 docs/dev/debt/libkernel.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
docs/dev/debt/shader.md
PR 9826 core/libs/prx/libSceSystemService/Export.cpp

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the event-error and parameter changes against the recorded measurements. sceKernelGetEventError now follows the measured fflags cases independent of EV_ERROR and data, and it explicitly leaves values above the measured 16-bit range unsupported; the tests cover the 0xFFFF boundary and rejection above it. The system-service tests also check unknown IDs return the measured error without changing the output. The PR notes that Windows and physical touch-pad input were not tested. I did not independently rerun the reported Linux/Rosetta test matrix.

@github-actions github-actions Bot added libkernel docs prx and removed needs rebase Conflicts with main, rebase needed labels Oct 19, 2026
@oneandonlydean oneandonlydean self-assigned this Oct 20, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 20, 2026
…measured-1340

# Conflicts:
#	docs/dev/debt/shader.md
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 20, 2026
…measured-1340

# Conflicts:
#	docs/dev/debt/libSceAgcDriver.md
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@frankea thanks for measuring these on a console. #8138 just merged (3e7d1d2) with the DualSense touchpad part of this PR: 1920x1080 in both controller-information calls, the x1079 finger scaling and the y 540 contacts, now in shared constants in PadState.hpp. That conflicts with this branch in Export.cpp, PadState.cpp, PadInput.cpp and GuestPad.cpp.

Could you rebase onto current main? After that, the pad hunk should come down to the dead-zone change (2 -> 13), plus your measurement as the source for the 1080 value if you'd like to add it next to the constants. The equeue, system service and other measured values stay as they are. Once the head moves we'll re-run CI and the test build on it.

…measured-1340

# Conflicts:
#	core/libs/prx/libScePad/Export.cpp
#	core/libs/prx/libScePad/src/PadState.cpp
#	core/libs/prx/libSceVideoOut/src/PadInput.cpp
#	core/libs/tests/GuestPad.cpp
@frankea

frankea commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

@oneandonlydean thanks. I merged current main (892a4f1, with #8138) into the branch rather than rebasing, so no force-push was needed; the head is now 78926e2 after a second merge of main (20de555). The pad change is down to the dead zones (2 -> 13 in both information calls), with a guest_pad check next to #8138's touch pad checks. PadState.cpp, PadInput.cpp and the touch constants are main's as they are. Since the code takes no comments, the measurement went into the libScePad "Touchpad resolution" debt entry: it said the console's values were not measured, and it now says a PS5 on 13.40 reported 1920 by 1080 at 44.86 and dead zones of 13 to a retail title. The equeue, system service and debt-only parts are unchanged, and the PR description is updated to match. guest_pad, guest_equeue_events, guest_system_service_language, pad_input, pad_sdl, pad_input_mapping and pad_keyboard_mouse pass in the Linux container on main 892a4f1 + this branch.

AI-assisted: yes (Claude Code).

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@frankea thanks for the console measurements and for trimming the touchpad entry. The values and their source (PS5 firmware 13.40, measured 2026-10-19 from a retail title's own calls) are exactly what these debt lines need.

One change before this can go in: the measurement sentences this PR adds name the title they were taken in, by name and title id, in docs/dev/debt/libSceAgcDriver.md (3 lines), libSceSystemService.md (2) and libSceVideoOut.md (4). The docs don't name individual titles, so please drop both the name and the id from those sentences and say something like "measured on a PS5 (firmware 13.40, 2026-10-19) inside a retail title". If the title matters for context, it belongs in the Game bring-up discussion, which the line can link to. Ids that were already in those entries before this PR can stay as they are.

@frankea

frankea commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

@oneandonlydean done in 62b29b6. The measurement sentences this PR adds no longer name the title or its id: each now says the value was measured on a PS5 (firmware 13.40, 2026-10-19) inside a retail title. That covers libSceAgcDriver.md, libSceSystemService.md and libSceVideoOut.md, plus the same wording in shader.md. Ids that were already in those entries are unchanged. check_conventions.py reports 0 errors.

AI-assisted: yes (Claude Code).

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
…measured-1340

# Conflicts:
#	docs/dev/debt/shader.md
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
…measured-1340

# Conflicts:
#	docs/dev/debt/libSceSystemService.md
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
…measured-1340

# Conflicts:
#	docs/dev/debt/libSceAgcDriver.md
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
…measured-1340

# Conflicts:
#	core/libs/prx/libSceSystemService/Export.cpp
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
@xdCloudy

Copy link
Copy Markdown
Contributor

@frankea, the overlap bot on my #9086 flags our shared docs/dev/debt/libSceAgcDriver.md hunk at main lines 11–12 as a conflict. My PR splits sceAgcDriverGetCoredumpAddress and sceAgcDriverSetTargetRingForDiag out of the unknown-functions entry; yours adds the sceAgcDriverSubmitAcb measurement nearby. I found no export or implementation overlap, and a pairwise merge-tree check confirms the debt-file conflict. I propose #7965 lands first, then I will rebase #9086 and reconcile the debt entry. I’ve listed #7965 as a proposed dependency on #9086. Does that order work for you?

@frankea

frankea commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@xdCloudy that order works for me: #7965 first, then #9086 rebases. If #9086 happens to land first, I'll take the rebase on my side; the only overlap is the debt-file hunk you found.

AI-assisted: yes (Claude Code)

@hugodearaujo

Copy link
Copy Markdown
Contributor

Two titles that need the parameter 100 case. Since #9137, main throws on it (sceSystemServiceParamGetInt: registry-backed parameter not implemented):

#9591 adds the same parameter 100 case. A local change with only that case gave 007 the same result.

Linux 7.2.11 (Arch), RX 9070 XT, RADV Mesa 26.2.5, Release. One run each.

@EagleBearerYS

Copy link
Copy Markdown
Contributor

@frankea a data point for this PR's sceSystemServiceParamGetInt values: since #9137 the call throws for ids 100-111, 200-213 and 300, and two titles now stop there. Marvel's Spider-Man 2 (PPSA03016) asks for 100, then 208 and 210 (hugodearaujo's run), and 007 First Light (PPSA11386) asks for 100 (#9458). This PR already covers 100. If you can measure 208 and 210 on your PS5 too, and any of 101-111, 200-213 and 300, those values would cover what Spider-Man 2 asks for at that point.

@oneandonlydean
oneandonlydean merged commit 6a6a35f into boykopovar:main Oct 22, 2026
10 checks passed
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@boykopovar, a note on merging this: it changes two sceSystemServiceParamGetInt answers that #9137 just added.

The latest main merge here resolved a conflict with #9137. Parameters 7 (game parental level) and 1000 (enter button assignment) now return 0x80A10003 again, instead of OFF and CROSS. That follows the measurement in this PR: on a PS5 on firmware 13.40, both calls returned 0x80A10003 inside a retail process (PPSA01317). Parameter 100 now answers 0. #9137's registry-backed throw stays for 101 to 111, 200 to 213 and 300, and the test and debt entries follow the same split.

If you have a console reading that shows 7 or 1000 answering on PS5, I'll put them back.

@frankea

frankea commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor Author

@EagleBearerYS @hugodearaujo I measured all of them on the PS5 (firmware 13.40) today, inside a retail title through ptrace remote calls in the game process, as before. The probe called sceSystemServiceParamGetInt for every id from 0 to 2048 with an 8-byte output filled with 0xaa, twice, and both runs gave the same results.

  • 1 to 5, 100 to 111, 200 to 213, 300 and 400 return 0 and write the value. Every other id from 0 to 2048 returns 0x80A10003 and leaves the output untouched.
  • The call writes 4 bytes: the 4 bytes after the value stayed 0xaa.
  • A null value pointer returns 0x80A10003 for 100 to 111.
Parameter Value
101 1
102 2
103 100 (0x64)
104 0x20202
105, 106 0
107 100 (0x64)
108 0
109 100 (0x64)
110 0x20202
111 0
200 to 207 0
208 0
209 1
210 71 (0x47)
211 to 213 0
300 0

For Spider-Man 2's reads that means 100 = 0, 208 = 0 and 210 = 71 on this console.

These are one console's values with its current settings, so some of them may be user settings that differ elsewhere; which ones, and what each parameter means, this doesn't show. For reference, the same runs read 1 = 1 (English (United States)), 2 = 2, 3 = 0, 4 = -300, 5 = 1, 100 = 0 and 400 = 1. 4 and 5 agree with the libSceSystemService debt entry's reading of them: the time zone is the offset less the summer time shift (UTC-5 with summer time in effect, the console's clock at UTC-4).

No open PR answers these ids yet as far as I can find, so I've opened #10077, which returns these values for 101 to 111, 200 to 213 and 300 instead of throwing, with the debt entry and guest_system_service_language updated.

AI-assisted: yes (Claude Code)

@EagleBearerYS

Copy link
Copy Markdown
Contributor

@frankea thank you, that's exactly what was missing: 208 = 0 and 210 = 71 cover Marvel's Spider-Man 2 (PPSA03016)'s reads at that stop, and the full 0-2048 sweep with the 4-byte write and the null-pointer result gives a PR something solid to test against. Your caveat about one console's settings is noted. Please link your PR here when it's up; @hugodearaujo can then run Spider-Man 2 on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants