Initialize the heap api

This commit is contained in:
kalaposfos13 2025-07-16 11:59:26 +02:00
parent aeab525a7f
commit af0bdb89ed

View File

@ -49,7 +49,16 @@ static PS4_SYSV_ABI void* RunMainEntry [[noreturn]] (EntryParams* params) {
}
#endif
Linker::Linker() : memory{Memory::Instance()} {}
Linker::Linker()
: memory{Memory::Instance()}, heap_api{new HeapAPI{.heap_malloc = &std::malloc,
.heap_free = &std::free,
.heap_calloc = &std::calloc,
.heap_realloc = &std::realloc,
.heap_memalign = nullptr,
.heap_posix_memalign = nullptr,
.heap_reallocalign = nullptr,
.heap_malloc_stats = nullptr,
.heap_malloc_usable_size = nullptr}} {}
Linker::~Linker() = default;