Repository navigation
Conversation
…pecialFloatFormatType Resident Evil 4 (PPSA07411, boykopovar#2776) and PRAGMATA (PPSA02530, boykopovar#3043) stop on the absent export with what(): _ZN3sce4Json14InitParameter225setSpecialFloatFormatTypeENS0_22SpecialFloatFormatTypeE not implemented Deathloop, Minecraft Legends and Cyberpunk import the base-object constructor InitParameter2::InitParameter2(), InitParameterRtti2:: setAllocatorRtti and InitParameterRtti::InitParameterRtti(AllocParamRtti*, void*, unsigned long), which were NotImplemented stubs. InitParameter2 is the 40-byte object of SharpEmu and KytyPS5: the allocator, its user data, the file buffer size and the 32-bit special float format type at 0x18. Both constructors zero it, setAllocatorRtti writes the allocation parameters and user data where setAllocator writes the allocator, and setSpecialFloatFormatType stores the type. InitParameterRtti's constructor writes its three arguments to the first 24 bytes. The NID WVZBP4IyM+E recomputes from the mangled name and is in the aerolib database. The enum's values are unknown, so no value is rejected; the inferred layouts are recorded in TechnicalDebt. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
9 tasks done
Progress report (0f863c1 → 94d3771)📈 System libraries: 85.84% (+0.1%, +4 implemented functions) ✅ 4 implemented
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Withdrawn in favor of #3495, an independent relinker fix with no Markdown changes. This JSON implementation remains available on its branch.
What
Implement the missing
libSceJson2initialization entry points tracked in #3348:InitParameter2base-object constructor (C2).InitParameterRtticonstructor.InitParameterRtti2::setAllocatorRtti.InitParameter2::setSpecialFloatFormatType.Both
InitParameter2constructors initialize the full 40-byte object. The existing 24-byte representation left its format and reserved fields untouched. #2776 and #3043 report startup stops at the missing format setter; this change addresses those entry points, not overall game compatibility.Carries screamm's implementation, as explicitly invited in #3348, preserving the author and commit message. It is rebased onto main, retaining the newer unrelated callback stub and technical-debt entries. A separate test commit adds guards around the 40-byte object, a file-buffer size above 32 bits, and checks that changing the format preserves the other fields.
The inferred layouts and unsupported behavior remain recorded in TechnicalDebt. Initialization still ignores the stored settings, and non-finite JSON serialization still throws. These semantics have not been measured on a console.
Tested
Windows x64, WinLibs MinGW-w64 GCC 15.2.0 (ucrt r7), CMake, Ninja, Release, BUILD_TESTING=ON:
cmake --build build --target guest_json_tests --parallel 6.ctest --test-dir build -R '^guest_json$' --output-on-failure --no-tests=error: passed.An isolated executable calling C2 against main's library throws
InitParameter2C2Ev not implemented(exit 1). The same executable against the updated library verifies all 40 bytes are initialized and succeeds (exit 0).python tools/check_conventions.py --base origin/mainandgit diff --check origin/main...HEAD: passed.cmake --build build --parallel 10: full build passed on main0f863c10plus these two commits.cmake --build build --target libs --parallel 10: passed; patched libraries are up to date.python tools/check_test_registration.py build: passed.No game execution or Linux runtime testing performed locally.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)