mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 18:45:36 +00:00
Initialize the heap api
This commit is contained in:
parent
aeab525a7f
commit
af0bdb89ed
@ -49,7 +49,16 @@ static PS4_SYSV_ABI void* RunMainEntry [[noreturn]] (EntryParams* params) {
|
|||||||
}
|
}
|
||||||
#endif
|
#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;
|
Linker::~Linker() = default;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user