diff --git a/Makefile b/Makefile index 84ca9d31..ab243ca8 100644 --- a/Makefile +++ b/Makefile @@ -96,13 +96,24 @@ export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \ -L$(LIBOGC_LIB) export OUTPUT := $(CURDIR)/$(TARGET) -.PHONY: $(BUILD) clean +.PHONY: $(BUILD) lang all clean #--------------------------------------------------------------------------------- $(BUILD): @[ -d $@ ] || mkdir -p $@ @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile +#--------------------------------------------------------------------------------- +lang: + @[ -d $@ ] || mkdir -p $@ + @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile language + +#--------------------------------------------------------------------------------- +all: + @[ -d $@ ] || mkdir -p $@ + @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile + @make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile language + #--------------------------------------------------------------------------------- clean: @echo clean ... @@ -133,8 +144,9 @@ DEPENDS := $(OFILES:.o=.d) #--------------------------------------------------------------------------------- # main targets #--------------------------------------------------------------------------------- -$(OUTPUT).dol: $(OUTPUT).elf language +$(OUTPUT).dol: $(OUTPUT).elf $(OUTPUT).elf: $(OFILES) + language: $(wildcard $(PROJECTDIR)/Languages/*.lang) #--------------------------------------------------------------------------------- # This rule links in binary data with .ttf, .png, and .mp3 extensions diff --git a/source/libwbfs/libwbfs.h b/source/libwbfs/libwbfs.h index 2f6f1a9f..eded1284 100644 --- a/source/libwbfs/libwbfs.h +++ b/source/libwbfs/libwbfs.h @@ -193,6 +193,9 @@ u32 wbfs_rm_disc(wbfs_t*p, u8* discid); /*! rename a game */ u32 wbfs_ren_disc(wbfs_t*p, u8* discid, u8* newname); +/* change ID of a game*/ +u32 wbfs_rID_disc(wbfs_t*p, u8* discid, u8* newID); + /*! trim the file-system to its minimum size This allows to use wbfs as a wiidisc container */