Enhancement: refactor battle animation with compressing linker so that compressed pointers can be updated automatically

This commit is contained in:
laqieer 2019-05-03 11:50:48 +00:00
parent 1d93c0b847
commit 3527218f1c
210 changed files with 2690 additions and 10333 deletions

2
.gitignore vendored
View File

@ -67,7 +67,7 @@ tools/agbcc
*.4bpp.h
*.8bpp.h
*.lz
banim/*.bin
data/banim/*.bin
# =========================
# Dump Scripts Output

View File

@ -45,7 +45,7 @@ DATA_S_FILES := $(wildcard data/*.s)
SFILES := $(ASM_S_FILES) $(LIBC_S_FILES) $(DATA_S_FILES)
C_OBJECTS := $(CFILES:.c=.o)
ASM_OBJECTS := $(SFILES:.s=.o)
ALL_OBJECTS := $(C_OBJECTS) $(ASM_OBJECTS)
ALL_OBJECTS := $(C_OBJECTS) $(ASM_OBJECTS) data/banim/data_banim.o
DEPS_DIR := .dep
# Use the older compiler to build library code
@ -64,7 +64,7 @@ clean:
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
$(RM) $(ROM) $(ELF) $(MAP) $(ALL_OBJECTS) src/*.s graphics/*.h -r $(DEPS_DIR)
# Remove battle animation binaries
$(RM) data/banim/*.bin data/banim/*.o
$(RM) data/banim/*.bin data/banim/*.o data/banim/*.lz data/banim/*.bak
# Graphics Recipes
@ -86,8 +86,8 @@ clean:
# Battle Animation Recipes
%_script.bin: %_motion.o
$(OBJCOPY) -O binary -j .data.script $< $@
data/banim/data_banim.o: $(shell ./scripts/arm_compressing_linker.py -t linker_script_banim.txt -m)
./scripts/arm_compressing_linker.py -o $@ -t linker_script_banim.txt -b 0x8c02000 -l $(LD) --objcopy $(OBJCOPY) -c ./scripts/compressor.py
%_modes.bin: %_motion.o
$(OBJCOPY) -O binary -j .data.modes $< $@

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More