From 21a8de0afce6fcabd3368ae9675ed75b5cbf9881 Mon Sep 17 00:00:00 2001 From: Lennart Austenfeld Date: Tue, 3 Oct 2023 16:19:52 +0200 Subject: [PATCH] Fix sprites.t3x not being included in 3ds .cia --- 3ds/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/3ds/Makefile b/3ds/Makefile index 504e61f..400e42e 100644 --- a/3ds/Makefile +++ b/3ds/Makefile @@ -183,7 +183,7 @@ endif .PHONY: all clean format cheats #--------------------------------------------------------------------------------- -all: cheats +all: cheats sprites @mkdir -p $(BUILD) $(GFXBUILD) $(OUTDIR) @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile $(OUTPUT).3dsx @bannertool makebanner -i "$(BANNER_IMAGE)" -a "$(BANNER_AUDIO)" -o $(BUILD)/banner.bnr @@ -192,7 +192,7 @@ all: cheats #--------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(OUTDIR) + @rm -fr $(BUILD) $(GFXBUILD) $(OUTDIR) $(ROMFS)/$(CHEATS) #--------------------------------------------------------------------------------- cheats: @mkdir -p $(BUILD) $(ROMFS)/$(CHEATS) @@ -203,6 +203,11 @@ else endif @cd $(SHARKIVE)/$(BUILD) && mv 3ds.json.bz2 ../../3ds/$(ROMFS)/$(CHEATS)/$(CHEATS).json.bz2 #--------------------------------------------------------------------------------- +sprites: + @mkdir -p $(BUILD) $(GFXBUILD) + @$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile sprites.t3x + @cp $(BUILD)/sprites.t3x $(GFXBUILD)/sprites.t3x +#--------------------------------------------------------------------------------- format: clang-format -i -style=file $(foreach dir,$(FORMATSOURCES),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cpp) $(wildcard $(dir)/*.tcc)) $(foreach dir,$(FORMATINCLUDES),$(wildcard $(dir)/*.h) $(wildcard $(dir)/*.hpp)) #--------------------------------------------------------------------------------- @@ -256,12 +261,6 @@ endef @echo $(notdir $<) @$(call shader-as,$(foreach file,$(shell cat $<),$(dir $<)$(file))) -#--------------------------------------------------------------------------------- -%.t3x %.h : %.t3s -#--------------------------------------------------------------------------------- - @echo $(notdir $<) - @tex3ds -i $< -H $*.h -d $*.d -o $(TOPDIR)/$(GFXBUILD)/$*.t3x - -include $(DEPSDIR)/*.d #---------------------------------------------------------------------------------------