Update readme/makefile

This commit is contained in:
Edoardo Lolletti 2024-04-25 19:31:37 +02:00
parent d1caccec43
commit ef82ae14d5
5 changed files with 17 additions and 47 deletions

2
.gitignore vendored
View File

@ -8,5 +8,3 @@
*.vscode
*.DS_Store
*._*
arm9/include/version.h

View File

@ -5,7 +5,7 @@ ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>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

View File

@ -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

View File

@ -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

6
arm9/include/version.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef VERSION_H
#define VERSION_H
#define VERSION "v0.1"
#endif // VERSION_H