Files
juanpimg 2f0ed638dc feat(prx): declare the missing PS5 3.20 system exports
AnyPS5 resolves a title's imports by NID, so a title that imports a system
function no library provides fails to load with an unresolved import. The
PS5 3.20 export inventory lists 193 such exports across 37 PS5 system
libraries AnyPS5 implements but does not provide.

Declare them as throwing stubs so those titles load and reach their next
blocker. Each declaration calls NotImplemented_nid_no_patch and returns 0;
none of them implements the function. Declarations with a credible
prototype use it and cite the source with a pinned commit, and the rest
are declared without parameters, which resolves the import without making
an ABI claim. The technical-debt files record the limitation per library.

libSceMbus and libSceSystemService are left out because pull request #7821
declares them. libSceAgc is left out because its exports are versioned, so
the 3.20 NID names a different symbol from the one AnyPS5 ships.
libSceAvPlayer.native is left out because it compiles libSceAvPlayer's
Export.cpp.

Names and NIDs come from the PS5 3.20 export inventory at
https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad
2026-10-19 23:16:55 +02:00

2.0 KiB

libSceDiscMap technical debt

Silent stubs

  • libSceDiscMap implements only the state with no disc bitmap: sceDiscMapIsRequestOnHDD and ioKMruft1ek return SCE_DISC_MAP_ERROR_NO_BITMAP_INFO (0x81100004) for every request and write nothing. CUSA02636's bundled libSceFios2.prx imports both; what it does with the error is not known (shadPS4 returns the same, and shadps4-game-compatibility #617 lists CUSA02636 as in-game)

Unknown function info

  • sceDiscMapGetPackageSize (libSceDiscMap) - its name and NID are in the PS5 3.20 export inventory; the (int64_t, int*, int*) prototype follows shadPS4, is not measured on a console, and every call throws
  • sceDiscMapIsRequestOnHDD, sceDiscMapUnknown_ioKMruft1ek (libSceDiscMap, NIDs lbQKqsERhtE and ioKMruft1ek) - ioKMruft1ek has no known name. The (path, offset, size, result) and (path, offset, size, flags, out1, out2) signatures follow shadPS4 disc_map.cpp; the widths of the ioKMruft1ek outputs are unknown (shadPS4 int*, fpPS4 PInt64), so they are void*. The error code is the one both return; shadPS4 #2686 reads the console library as checking an initialisation global first in each call and returning it while the global is clear. Not measured on a console