feat(libs): implement sceGameUpdateGetAddcontLatestVersion #704
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/704"
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 adriadam10 on 2026-10-05T17:19:14Z.
What
Implements
sceGameUpdateGetAddcontLatestVersion(libSceGameUpdate), which was the last throwing export of the library. No update server is reachable, so it reports no newer add-on version (found = false).Behaviour follows KytyPS5 (
libNet.cpp,GameUpdateGetAddcontLatestVersion); prosper (hle_service.cpp) agrees on the codes and onfound = false:0x80412801.sceGameUpdateInitialize/Terminatenow set and clear the initialized state; their return values are unchanged.info→0x80412803.info->sizebelowsizeof(GameUpdateAddcontVersionInfo)(0x30) →0x80412804(KytyPS5; prosper doesn't check the size).size,found = false.Where the references disagree:
entitlement_label: KytyPS5 accepts it, prosper returns0x80412803. It throws here, and the gap is listed in TechnicalDebt "Unknown function info".found: KytyPS5 zeroes them, prosper leaves them untouched. This follows KytyPS5 (the primary reference), also noted in TechnicalDebt.The layout is the existing
GameUpdateAddcontVersionInfoinSceTypes.hpp, which matches KytyPS5's.Tested
Linux, GCC Release build. New
guest_gameupdatetest (core/libs/tests/GuestGameUpdate.cpp, registered in the library's newCMakeLists.txt, PlayGo pattern including the MinGW block). It covers the not-initialized error before Initialize and after Terminate, nullinfo, a shortsize, the throw on a null label, and the success fill (sizepreserved, every other byte zero). It fails onmain, where the stub throws. Each check fails when its piece is removed (init/terminate state, null check, size check, zero fill, label throw).ctest -R guest_passes, 96/96.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)Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T20:30:05Z.
This needs a rebase now:
docs/dev/TechnicalDebt.mdconflicts with currentmain. #703 removed thesceNpTrophy2UnregisterUnlockCallbackline next to your newsceGameUpdateGetAddcontLatestVersionline, so the resolution is to keep your line and leave that one out. Nothing else conflicts.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T22:30:47Z.
Rebased on current
main: kept my line and left #703's removed one out.guest_gameupdatepasses.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-05T23:17:52Z.
Rebased on main (conflict in TechnicalDebt.md with the new sceUserServiceGetAgeLevel line, both kept); guest_gameupdate test passes.