mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
Eight libSceFreeTypeOt exports carry the NIDs of FreeType's ft_mem_alloc, ft_mem_qalloc, ft_mem_realloc, ft_mem_qrealloc, ft_mem_free, ft_mem_dup, ft_mem_strdup and ft_mem_strcpyn. Implement them in src/Memory.cpp as bundled FreeType 2.13.3 ftutil.c does on LP64: allocation, resizing and freeing go through the guest FT_MemoryRec callbacks, the cleared variants zero the new bytes, and the error codes are Invalid_Argument, Array_Too_Large and Out_Of_Memory. Add the guest FT_MemoryRec layout and a test that checks every sourced path with a recording guest allocator.