Skip to content

Read PS4 directory NP metadata on retail 13.60 - #108

Draft
Vadim170 wants to merge 1 commit into
EchoStretch:mainfrom
Vadim170:fix/1360-folder-np-metadata
Draft

Vadim170 wants to merge 1 commit into
EchoStretch:mainfrom
Vadim170:fix/1360-folder-np-metadata

Conversation

@Vadim170

@Vadim170 Vadim170 commented Nov 7, 2026 •

Copy link
Copy Markdown

The PS4 directory provider's NP metadata getters on retail 13.60 return no metadata. In the reproducer, trophy promotion uses an empty/default title context and fails with 0x80551618 before launch.

Reuse the existing PKG metadata parsers, adapting only their entry reads to the directory's nptitle.dat and npbind.dat. Other source kinds keep the original reader. Format/ID validation and allocator ownership remain with the existing parsers. The adapter stays installed for later in-game registration reads.

Installation is restricted to retail 13.60, checks original instructions, stops ShellCore during branch updates, verifies writes and rolls back failures. Readable state is separate from the executable trampoline; the linked reader rejects embedded data. No title-specific patches or diagnostic telemetry are included.

Validation:

  • python3 tools/test_ps4_folder_metadata.py passes file-I/O, bounds, short-read/EINTR, error, fallback and allocation-ownership cases.
  • The minimized core and SDK loader build locally with GNU GCC 16.2/binutils 2.47 and PS5 payload SDK 0.45.
  • An earlier instrumented standalone adapter was tested on the owner's retail 13.60 PS5 with Outer Wilds CUSA09919, its original encrypted TRP and companion path/appmeta repairs. Promotion created the correct nonempty trophy configuration; keeping the adapter through in-game registration removed the repeated failure from that launch log.

The final minimized installer/layout has not been tested on console. Fresh-boot validation and an actual trophy unlock remain pending. Installed PKG/exFAT power-offs are outside this change's validated scope. The legacy NP binding path and backfilling private appmeta are separate fixes.

Companion legacy binding-path fix: #107. Existing-registration appmeta backfill: drakmor/ShadowMountPlus#207.

Authored by an AI coding agent. The owner has not reviewed the source code; they participated in PS5 runtime testing.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant