Skip to content

feat(libSceJson2): store the special float format type of InitParameter2 - #4745

Closed
renzipego-cpu wants to merge 3 commits into
boykopovar:mainfrom
renzipego-cpu:fix/json2-special-float-format-v3
Closed

renzipego-cpu wants to merge 3 commits into
boykopovar:mainfrom
renzipego-cpu:fix/json2-special-float-format-v3

Conversation

@renzipego-cpu

Copy link
Copy Markdown

Carries xXPBSXx:fix/json2-special-float-format-v3 unchanged (e2c4cc34, stacked on the export branch as published). Refs #2776 (the reported last stop of RE4).

Depends on: #3773 - this diff against that branch is the last commit only (the other two commits are that branch's content).

What

Resident Evil 4 (PPSA07411), once its Party.prx and import stops are passed (#3129 is on main; #3773 pending), stops at start-up on:

what():  _ZN3sce4Json14InitParameter225setSpecialFloatFormatTypeENS0_22SpecialFloatFormatTypeE not implemented

The InitParameter2 special-float-format setter now stores the value, as the sibling setters do, instead of throwing. TechnicalDebt records that the layout and whether the console validates the value are unverified on a title.

Tested

Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, full build including libs: guest_json and guest_ppsa07411_exports pass on the branch rebased onto current upstream (198e02210). python tools/check_conventions.py --base upstream/main passes. The title was not run here; the runtime stop is the one xXPBSXx measured in #2776.

Checklist

  • Based on current main; no other open PR implements the same functions
  • 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 TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: fix(exports): export the calls PPSA07411 imports #3773
  • AI-assisted: yes

eliasbruno124-dev and others added 3 commits October 11, 2026 16:04
PPSA07411 (Resident Evil 4) fails to load without these imports that no library exports. Their signatures are unknown, so they are declared without parameters and throw until they are implemented. Adds one test and a TechnicalDebt entry.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PPSA07411 (Resident Evil 4) and PPSA02530 (PRAGMATA) call sce::Json::InitParameter2::setSpecialFloatFormatType during start-up, which only threw. The mangled name gives the signature (one SpecialFloatFormatType by value). The value is stored as a 32-bit integer after the file buffer size, like the other setters, and nothing reads it; the place in the structure is assumed, as for the other fields. guest_json now checks the stored value and that nothing beyond 32 bytes is written. Replaces the throwing stub from the PPSA07411 exports commit and its entry in the exports test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the open PR limit Closed over the open PR limit: 1 without merged PRs, 20 with at least 1, none from 20 label Oct 12, 2026
@github-actions

Copy link
Copy Markdown

Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

@github-actions github-actions Bot closed this Oct 12, 2026
@renzipego-cpu
renzipego-cpu deleted the fix/json2-special-float-format-v3 branch October 13, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open PR limit Closed over the open PR limit: 1 without merged PRs, 20 with at least 1, none from 20

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants