Build NCLR from png

This commit is contained in:
Adrienn Tindall 2024-03-22 21:51:43 -04:00
parent af0e954520
commit b177ee2304
79 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -1,17 +1,18 @@
PREVIEW_GRAPHIC_DIR := files/fielddata/graphic/preview_graphic/preview_graphic
PREVIEW_GRAPHIC_NARC := $(PREVIEW_GRAPHIC_DIR).narc
PREVIEW_GRAPHIC_NCLR := $(wildcard $(PREVIEW_GRAPHIC_DIR)/*.NCLR)
PREVIEW_GRAPHIC_PNG := $(wildcard $(PREVIEW_GRAPHIC_DIR)/*.png)
PREVIEW_GRAPHIC_NSCR := $(wildcard $(PREVIEW_GRAPHIC_DIR)/*.NSCR)
PREVIEW_GRAPHIC_NCGR := $(PREVIEW_GRAPHIC_PNG:%.png=%.NCGR)
PREVIEW_GRAPHIC_NCLR := $(PREVIEW_GRAPHIC_PAL:%.png=%.NCLR)
PREVIEW_GRAPHIC_NCGR_LZ := $(PREVIEW_GRAPHIC_NCGR:%.NCGR=%.NCGR.lz)
PREVIEW_GRAPHIC_NSCR_LZ := $(PREVIEW_GRAPHIC_NSCR:%.NSCR=%.NSCR.lz)
8BPP_NOPAD_NCLR_PNG_FILES += $(PREVIEW_GRAPHIC_NCLR)
VERSION101_SOPC_8BPP_NCGR_FILES += $(PREVIEW_GRAPHIC_NCGR)
$(PREVIEW_GRAPHIC_NARC): $(PREVIEW_GRAPHIC_NCGR_LZ) $(PREVIEW_GRAPHIC_NSCR_LZ)
$(PREVIEW_GRAPHIC_NARC): $(PREVIEW_GRAPHIC_NCGR_LZ) $(PREVIEW_GRAPHIC_NSCR_LZ) $(PREVIEW_GRAPHIC_NCLR)
$(KNARC) -p $(PREVIEW_GRAPHIC_NARC) -d $(PREVIEW_GRAPHIC_DIR) -i
FS_CLEAN_TARGETS += $(PREVIEW_GRAPHIC_NCGR_LZ) $(PREVIEW_GRAPHIC_NSCR_LZ)

View File

@ -8,6 +8,7 @@ $(IR_NCLR_FILES): GFX_FLAGS = -ir
$(4BPP_NCLR_FILES): GFX_FLAGS = -bitdepth 4
$(8BPP_NSCR_FILES): GFX_FLAGS = -bitdepth 8
$(8BPP_COMP10_NOPAD_NCLR_PNG_FILES): GFX_FLAGS = -bitdepth 8 -nopad -comp 10
$(8BPP_NOPAD_NCLR_PNG_FILES): GFX_FLAGS = -bitdepth 8 -nopad
$(8BPP_COMP10_NOPAD_NCLR_PAL_FILES): GFX_FLAGS = -bitdepth 8 -nopad -comp 10
$(4BPP_NOPAD_PCMP_NCLR_FILES): GFX_FLAGS = -bitdepth 4 -nopad -pcmp