You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Match LZ compressed files (#724)
Replace lzcomp with new version and match all LZ compressed files
This commit is contained in:
13
Makefile
13
Makefile
@@ -108,16 +108,13 @@ pokecrystal-au.gbc: $(crystal_au_obj) layout.link
|
||||
$(RGBFIX) -Cjv -t PM_CRYSTAL -i BYTU -k 01 -l 0x33 -m 0x10 -r 3 -p 0 $@
|
||||
|
||||
|
||||
# For files that the compressor can't match, there will be a .lz file suffixed with the md5 hash of the correct uncompressed file.
|
||||
# If the hash of the uncompressed file matches, use this .lz instead.
|
||||
# This allows pngs to be used for compressed graphics and still match.
|
||||
### LZ compression rules
|
||||
|
||||
# Delete this line if you don't care about matching and just want optimal compression.
|
||||
include gfx/lz.mk
|
||||
|
||||
%.lz: hash = $(shell tools/md5 $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
|
||||
%.lz: %
|
||||
$(eval filename := $@.$(hash))
|
||||
$(if $(wildcard $(filename)),\
|
||||
cp $(filename) $@,\
|
||||
tools/lzcomp -- $< $@)
|
||||
tools/lzcomp $(LZFLAGS) -- $< $@
|
||||
|
||||
|
||||
### Pokemon pic animation rules
|
||||
|
Reference in New Issue
Block a user