Files
AnyPS5/docs/dev/debt/libSceDiscMap.md
T
SandstromPLandClaude Opus 5.5 716d811861 feat(libSceDiscMap): report no disc bitmap from the two disc map queries
Until Dawn (CUSA02636) bundles a libSceFios2.prx that imports two
libSceDiscMap functions, sceDiscMapIsRequestOnHDD (lbQKqsERhtE) and
ioKMruft1ek, and no host library exported them.

Both now return SCE_DISC_MAP_ERROR_NO_BITMAP_INFO (0x81100004) and
write nothing, as shadPS4 and fpPS4 do. That is the error the console
library returns while it has no disc bitmap loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 20:54:46 +05:30

1.5 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

  • 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