diff --git a/.gitignore b/.gitignore index 062626e..8c0847f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /build *.elf *.rpx +*.wuhb diff --git a/Makefile b/Makefile index 817e434..7ea4e4e 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,15 @@ endif TOPDIR ?= $(CURDIR) +#------------------------------------------------------------------------------- +# APP_NAME sets the long name of the application +# APP_SHORTNAME sets the short name of the application +# APP_AUTHOR sets the author of the application +#------------------------------------------------------------------------------- +APP_NAME := mdinfo +APP_SHORTNAME := mdinfo +APP_AUTHOR := GaryOderNichts + include $(DEVKITPRO)/wut/share/wut_rules #------------------------------------------------------------------------------- @@ -16,12 +25,20 @@ include $(DEVKITPRO)/wut/share/wut_rules # SOURCES is a list of directories containing source code # DATA is a list of directories containing data files # INCLUDES is a list of directories containing header files +# CONTENT is the path to the bundled folder that will be mounted as /vol/content/ +# ICON is the game icon, leave blank to use default rule +# TV_SPLASH is the image displayed during bootup on the TV, leave blank to use default rule +# DRC_SPLASH is the image displayed during bootup on the DRC, leave blank to use default rule #------------------------------------------------------------------------------- TARGET := $(notdir $(CURDIR)) BUILD := build SOURCES := . DATA := data INCLUDES := include +CONTENT := +ICON := icon.png +TV_SPLASH := +DRC_SPLASH := #------------------------------------------------------------------------------- # options for code generation @@ -90,6 +107,34 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) +ifneq (,$(strip $(CONTENT))) + export APP_CONTENT := $(TOPDIR)/$(CONTENT) +endif + +ifneq (,$(strip $(ICON))) + export APP_ICON := $(TOPDIR)/$(ICON) +else ifneq (,$(wildcard $(TOPDIR)/$(TARGET).png)) + export APP_ICON := $(TOPDIR)/$(TARGET).png +else ifneq (,$(wildcard $(TOPDIR)/icon.png)) + export APP_ICON := $(TOPDIR)/icon.png +endif + +ifneq (,$(strip $(TV_SPLASH))) + export APP_TV_SPLASH := $(TOPDIR)/$(TV_SPLASH) +else ifneq (,$(wildcard $(TOPDIR)/tv-splash.png)) + export APP_TV_SPLASH := $(TOPDIR)/tv-splash.png +else ifneq (,$(wildcard $(TOPDIR)/splash.png)) + export APP_TV_SPLASH := $(TOPDIR)/splash.png +endif + +ifneq (,$(strip $(DRC_SPLASH))) + export APP_DRC_SPLASH := $(TOPDIR)/$(DRC_SPLASH) +else ifneq (,$(wildcard $(TOPDIR)/drc-splash.png)) + export APP_DRC_SPLASH := $(TOPDIR)/drc-splash.png +else ifneq (,$(wildcard $(TOPDIR)/splash.png)) + export APP_DRC_SPLASH := $(TOPDIR)/splash.png +endif + .PHONY: $(BUILD) clean all #------------------------------------------------------------------------------- @@ -102,7 +147,7 @@ $(BUILD): #------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).rpx $(TARGET).elf + @rm -fr $(BUILD) $(TARGET).wuhb $(TARGET).rpx $(TARGET).elf #------------------------------------------------------------------------------- else @@ -113,8 +158,9 @@ DEPENDS := $(OFILES:.o=.d) #------------------------------------------------------------------------------- # main targets #------------------------------------------------------------------------------- -all : $(OUTPUT).rpx +all : $(OUTPUT).wuhb +$(OUTPUT).wuhb : $(OUTPUT).rpx $(OUTPUT).rpx : $(OUTPUT).elf $(OUTPUT).elf : $(OFILES) diff --git a/README.md b/README.md index 073b4ad..7a4010e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ +![](icon.png) # mdinfo -Quick and dirty tool to display info about IOSU's memory devices. +Quick and simple tool to display info about IOSU's memory devices. Can be used to figure out what eMMC chip is built into a console. **Note: You need the [MochaPayload](https://github.com/wiiu-env/MochaPayload) for this to work** diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..70d4a00 Binary files /dev/null and b/icon.png differ