summaryrefslogtreecommitdiff
path: root/src/code/sys_cmpdma.c
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2023-11-26 22:01:42 -0300
committerGitHub <noreply@github.com>2023-11-27 12:01:42 +1100
commit6dd16009361b2561f77b7933981611a9b975fa21 (patch)
tree606f9bd82debe312be65d4e05798e9dc2435ae41 /src/code/sys_cmpdma.c
parent34492a4386446fc82220fe0684ff521d760e84bd (diff)
Organize `libc64` files (#1492)
* Move qrand to libc64 * use an union to avoid type punning * __osMalloc * math64.c * fixed_point.h * sleep * aprintf.h * sprintf * malloc * use original names on aprintf.c and malloc.c * qrand cleanup pass * use original names of sleep.c * og names for sprintf * more cleanup * format * fixes * whoops * use ARRAY_COUNT again * comment * Use `fu` * forgot this one * review * fix * sneak a tiny cleanup
Diffstat (limited to 'src/code/sys_cmpdma.c')
-rw-r--r--src/code/sys_cmpdma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/sys_cmpdma.c b/src/code/sys_cmpdma.c
index 9e1a66d2e..71d92c187 100644
--- a/src/code/sys_cmpdma.c
+++ b/src/code/sys_cmpdma.c
@@ -1,5 +1,5 @@
#include "global.h"
-#include "system_malloc.h"
+#include "libc64/malloc.h"
typedef struct {
/* 0x0 */ union {
@@ -83,11 +83,11 @@ void CmpDma_LoadFileImpl(uintptr_t segmentRom, s32 id, void* dst, size_t size) {
CmpDma_GetFileInfo(segmentRom, id, &romStart, &compressedSize, &flag);
if (flag & 1) {
- void* tempBuf = SystemArena_Malloc(0x1000);
+ void* tempBuf = malloc(0x1000);
CmpDma_Decompress(romStart, compressedSize, tempBuf);
func_80178AC0(tempBuf, dst, size);
- SystemArena_Free(tempBuf);
+ free(tempBuf);
} else {
CmpDma_Decompress(romStart, compressedSize, dst);
}