From d7b3836f5e9b9ff8364c3a71fa2d4a9ce643ec20 Mon Sep 17 00:00:00 2001 From: Aetias Date: Sun, 15 Oct 2023 16:46:19 +0200 Subject: [PATCH] Fix checksum verification --- Makefile | 3 ++- checksum.sha1 | 3 --- ph_eur.sha1 | 1 + ph_jpn.sha1 | 1 + ph_usa.sha1 | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 checksum.sha1 create mode 100644 ph_eur.sha1 create mode 100644 ph_jpn.sha1 create mode 100644 ph_usa.sha1 diff --git a/Makefile b/Makefile index a1ddde98..62f2212c 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ OV_LZS = $(OV_BINS:%.bin=%.lz) NDS_FILE := ph_$(REGION_NAME).nds BASE_ROM := baserom_$(REGION_NAME).nds +CHECKSUM := ph_$(REGION_NAME).sha1 MW_VER := 2.0/sp1p5 MW_ASM := $(TOOLS_DIR)/mwccarm/$(MW_VER)/mwasmarm @@ -39,7 +40,7 @@ LD_FLAGS := -proc arm946e -nostdlib -nointerworking -nodead -m func_02000800 -m .PHONY: all all: tools rom sha1sum $(NDS_FILE) - sha1sum -c checksum.sha1 + sha1sum -c $(CHECKSUM) .PHONY: tools tools: diff --git a/checksum.sha1 b/checksum.sha1 deleted file mode 100644 index ad8dc000..00000000 --- a/checksum.sha1 +++ /dev/null @@ -1,3 +0,0 @@ -02be55db55cf254bd064d2b3eb368b92a5b4156d ph_eur.nds -4c8f52dd719918bbcd46e73a8bae8628139c1b85 ph_usa.nds -53e46481deb08237354945bc63ab0b02f4de1ff4 ph_jpn.nds diff --git a/ph_eur.sha1 b/ph_eur.sha1 new file mode 100644 index 00000000..9dc2d940 --- /dev/null +++ b/ph_eur.sha1 @@ -0,0 +1 @@ +02be55db55cf254bd064d2b3eb368b92a5b4156d ph_eur.nds \ No newline at end of file diff --git a/ph_jpn.sha1 b/ph_jpn.sha1 new file mode 100644 index 00000000..993905e7 --- /dev/null +++ b/ph_jpn.sha1 @@ -0,0 +1 @@ +53e46481deb08237354945bc63ab0b02f4de1ff4 ph_jpn.nds \ No newline at end of file diff --git a/ph_usa.sha1 b/ph_usa.sha1 new file mode 100644 index 00000000..eef6f174 --- /dev/null +++ b/ph_usa.sha1 @@ -0,0 +1 @@ +4c8f52dd719918bbcd46e73a8bae8628139c1b85 ph_usa.nds \ No newline at end of file