Skip to content

Commit

Permalink
Close #32
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 24, 2024
1 parent 02b47d5 commit 3367f69
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 207 deletions.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
.SECONDARY:

ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitARM")
endif

ifneq (,$(shell which python3))
PYTHON := python3
else ifneq (,$(shell which python2))
PYTHON := python2
else ifneq (,$(shell which python))
PYTHON := python
else
$(error "Python not found in PATH, please install it.")
endif

export TARGET := $(shell basename $(CURDIR))
export TOPDIR := $(CURDIR)

Expand Down Expand Up @@ -43,7 +55,7 @@ $(TARGET).nds : $(NITRO_FILES) arm7/$(TARGET).elf arm9/$(TARGET).elf
ndstool -c $(TARGET).nds -7 arm7/$(TARGET).elf -9 arm9/$(TARGET).elf -r9 00080002 \
-b $(GAME_ICON) "$(GAME_TITLE);$(GAME_SUBTITLE1);$(GAME_SUBTITLE2)" \
-g HIYA 01 "HIYACFW" -z 80040000 -u 00030004 $(_ADDFILES)
python2 fix_ndsheader.py $(TARGET).nds
$(PYTHON) fix_ndsheader.py $(TARGET).nds
cp $(TARGET).nds hiya.dsi

#---------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 3367f69

Please sign in to comment.