fix(libSceNgs2.native): return 0x804A8432 for waveform formats the module does not parse #9324
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9324"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarrasFederico on 2026-10-21T18:27:35Z.
What
sceNgs2ParseWaveformDataandsceNgs2ParseWaveformFilethrew "parsing waveform format tag … is not implemented" for any format they did not parse. In prosper's reading oflibSceNgs2.native.sprx, the module's route selection answers most of them with0x804A8432(UNKNOWN_WAVEFORM_FORMAT). The parser now does the same:0x804A8432.0x804A8432;0x804A8432.This builds on #9148, which adds the float route and the PCM GUID. #9148 is merged and this branch is merged with current
main, so the diff holds only this PR's commits.Tested
Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with
BUILD_TESTING=ON. Windows was not compiled. No title was run.ngs2_parse, newTestParseUnknownFormats:0x804A8432;0x804A8432;0x804A8432;sceNgs2ParseWaveformFilereturns0x804A8432for tag 0x55.INVALID_WAVEFORM_FORMATfor a short extensible chunk makes it fail. The test does not exercise the two cases that still throw (the type 0x43 GUID and an unknown GUID with 0x34 bytes), so it does not pin them as unimplemented.ngs2tests pass on currentmain.main(#9148 included), the full build succeeds and the 16ngs2tests pass. This PR and #9149 each add tests at the same place inNgs2Parse.cpp, so whichever lands second needs a rebase that keeps both.tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pyreports my #9149 onAtrac9.cppL18, where both branches carry #9148's new constants. It could not compare #5797; it does not change the route selection.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by ycbuzi on 2026-10-21T20:48:54Z.
Windows run of
0f4a7216efmerged ontomain0c6a5bd593(229b80cc3f, clean), the platform the description lists as not tested. Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 (ucrt-posix-seh r7), Release,BUILD_TESTING=ON.Built
libSceNgs2.nativeandngs2_parse_testswith no errors or warnings.ctest --repeat until-fail:2onngs2_parse: passes on both repeats. The head carries the PRs below it in its stack (#9148) too. Not run: a title.