Files
AnyPS5/docs/dev/debt/changes/fix-libscengs2-rack-create-errors.md
roboterspinne ed9c722d8f fix(libSceNgs2.native): return the module's buffer and allocator errors from sceNgs2RackCreate and sceNgs2RackCreateWithAllocator (#20810)
* fix(libSceNgs2.native): return the module's buffer and allocator errors from sceNgs2RackCreate and sceNgs2RackCreateWithAllocator
* test(libSceNgs2.native): pass a real rack buffer in the ChannelMixer creation error checks
2026-11-18 08:32:32 +13:00

1.1 KiB

libSceNgs2.native

change [sceNgs2SystemCreateWithAllocator free handler]

  • sceNgs2SystemCreateWithAllocator and sceNgs2RackCreateWithAllocator free handler (libSceNgs2.native) - an allocator with an alloc_handler but no free_handler throws after the option checks, for a rack also after the system check: the module only checks the alloc_handler, and what it does without a free handler is unknown. Otherwise sceNgs2SystemCreate and sceNgs2RackCreate return 0x804A8020 for a null buffer info or host buffer, and the WithAllocator calls 0x804A8023 for a null allocator or alloc_handler, before the null-handle 0x804A8010 and the option checks, per prosper's reading of the module (create, rack); not measured on a console