From 1d8e8f3ca196375f97c327ec290c55b6ff124d32 Mon Sep 17 00:00:00 2001 From: Yanis <35189056+Yanis42@users.noreply.github.com> Date: Fri, 26 Jul 2024 20:35:39 +0200 Subject: [PATCH] Fix compression issues (#146) --- Makefile | 2 +- include/compression.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f39a8cfce..2ffec5835 100644 --- a/Makefile +++ b/Makefile @@ -408,7 +408,7 @@ $(ROM): $(ELF) $(ROMC): $(ROM) $(ELF) $(BUILD_DIR)/compress_ranges.txt ifeq ($(COMPRESSION),yaz) - $(V)$(PYTHON) tools/compress.py --in $(ROM) --out $@ --dmadata-start `./tools/dmadata_range.sh $(NM) $(ELF)` --compress `cat $(BUILD_DIR)/compress_ranges.txt` --threads $(N_THREADS) + $(V)$(PYTHON) tools/compress.py --in $(ROM) --out $@ --dmadata-start `./tools/dmadata_start.sh $(NM) $(ELF)` --compress `cat $(BUILD_DIR)/compress_ranges.txt` --threads $(N_THREADS) else $(V)$(PYTHON) tools/z64compress_wrapper.py --codec $(COMPRESSION) --cache $(BUILD_DIR)/cache --threads $(N_THREADS) $< $@ $(ELF) $(BUILD_DIR)/$(SPEC) endif diff --git a/include/compression.h b/include/compression.h index 3a068285b..a530646da 100644 --- a/include/compression.h +++ b/include/compression.h @@ -2,6 +2,7 @@ #define COMPRESSION_H #include "ultra64.h" +#include "z64dma.h" void* Yaz0_FirstDMA(void); void* Yaz0_NextDMA(u8* curSrcPos);