diff --git a/.gitignore b/.gitignore index 05b2a6d..2104960 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,3 @@ *.vscode *.DS_Store *._* - -arm9/include/version.h diff --git a/Makefile b/Makefile index a580191..7ca945e 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ ifeq ($(strip $(DEVKITARM)),) $(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") endif -export TARGET := NTM-unlaunch +export TARGET := unlaunch-installer export TOPDIR := $(CURDIR) # specify a directory which contains the nitro filesystem @@ -13,11 +13,11 @@ export TOPDIR := $(CURDIR) NITRO_FILES := # These set the information text in the nds file -GAME_TITLE := NAND Title Manager -GAME_SUBTITLE1 := JeffRuLz, Pk11 +GAME_TITLE := Safe Unlaunch installer +GAME_SUBTITLE1 := edo9300 -GAME_CODE := HTMA -GAME_LABEL := NANDTM +GAME_CODE := UNLI +GAME_LABEL := UNLINS include $(DEVKITARM)/ds_rules diff --git a/README.md b/README.md index a3e30b7..b31cea5 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,17 @@ -# NAND Title Manager -A basic title manager for the Nintendo DSi supporting both hiyaCFW's SDNAND and SysNAND, modified from JeffRuLz's Title Manager for HiyaCFW. +# "Safe" unlaunch installer +A basic homebrew with a single job, install and uninstall unlaunch from a console. ## WARNING -This can modify your internal system NAND! There is *always* a risk of **bricking**, albeit small, when you modify NAND. Please proceed with caution. Having Unlaunch installed is also strongly recommended as it will likely protect you if something manages to go wrong. +This can modify your internal system NAND! There is *always* a risk of **bricking**, albeit small, when you modify NAND. Please proceed with caution. ## Features -- Install DSiWare and homebrew onto your hiyaCFW SDNAND and SysNAND DSi Menus -- Delete system titles and others hidden from Data Management -- Backup and restore installed titles -- View basic title header info +TODO ## Notes -- Backup your SD card and your NAND! Nothing bad should happen, but this is an early release so who knows -- This cannot install cartridge games or older DS homebrew directly, for those you need to make [forwarders](https://wiki.ds-homebrew.com/ds-index/forwarders) - - Always test your forwarders from TWiLight Menu++ or Unlaunch before installing to SysNAND -- Save files and legit TMDs can be used by giving them the following names, where `[rom name]` is the file name of the ROM *without* the extension - - `public.sav` => `[rom name].pub` - - `private.sav` => `[rom name].prv` - - `banner.sav` => `[rom name].bnr` - - `title.tmd` => `[rom name].tmd` -- If you want your DSiWare to work without RSA patches make sure to provide a legit TMD - - Homebrew and DSiWare without a legit TMD require Unlaunch installed with its launcher patches enabled when installed to SysNAND -- Out of region DSiWare cannot be used from SysNAND without Unlaunch's launcher patches -- This is only for DSi systems, not 3DS or DS +TODO ## Credits - [DevkitPro](https://devkitpro.org/): devkitARM and libnds -- [Tuxality](https://github.com/Tuxality): [maketmd](https://github.com/Tuxality/maketmd) - [Martin Korth (nocash)](https://problemkaputt.de): [GBATEK](https://problemkaputt.de/gbatek.htm) - [JeffRuLz](https://github.com/JeffRuLz): [TMFH](https://github.com/JeffRuLz/TMFH) (what this is a fork of) -- [DesperateProgrammer](https://github.com/DesperateProgrammer): [DSi Language Patcher](https://github.com/DesperateProgrammer/DSiLanguagePacher) (working NAND writing code) -- [rvtr](https://github.com/rvtr): Adding support for installing dev titles +- [rvtr](https://github.com/rvtr): Adding support for installing to dev/proto consoles diff --git a/arm9/Makefile b/arm9/Makefile index 1ffbbaf..16fba63 100644 --- a/arm9/Makefile +++ b/arm9/Makefile @@ -7,24 +7,6 @@ endif include $(DEVKITARM)/ds_rules -# If on a tagged commit, use just tag -ifneq ($(shell echo $(shell git tag -l --points-at HEAD) | head -c 1),) -GIT_VER := $(shell git tag -l --points-at HEAD) -else -GIT_VER := $(shell git describe --abbrev=0 --tags)-$(shell git rev-parse --short=7 HEAD) -endif - -# Ensure version.h exists -ifeq (,$(wildcard include/version.h)) -$(shell mkdir -p include) -$(shell touch include/version.h) -endif - -# Print new version if changed -ifeq (,$(findstring $(GIT_VER), $(shell cat include/version.h))) -$(shell printf "#ifndef VERSION_H\n#define VERSION_H\n\n#define VERSION \"$(GIT_VER)\"\n\n#endif // VERSION_H\n" > include/version.h) -endif - #--------------------------------------------------------------------------------- # BUILD is the directory where object files & intermediate files will be placed # SOURCES is a list of directories containing source code diff --git a/arm9/include/version.h b/arm9/include/version.h new file mode 100644 index 0000000..8222156 --- /dev/null +++ b/arm9/include/version.h @@ -0,0 +1,6 @@ +#ifndef VERSION_H +#define VERSION_H + +#define VERSION "v0.1" + +#endif // VERSION_H