From af0bdb89ed65e50e21557af5cfa393ab32fa4394 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Wed, 16 Jul 2025 11:59:26 +0200 Subject: [PATCH] Initialize the heap api --- src/core/linker.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/core/linker.cpp b/src/core/linker.cpp index 1f45caf12..f2c75c85c 100644 --- a/src/core/linker.cpp +++ b/src/core/linker.cpp @@ -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;