1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-10-20 05:30:26 +00:00

checksums for ntsc 1.2 JP and US, accept both as baserom (#2030)

This commit is contained in:
Dragorn421 2024-08-15 00:53:39 +02:00 committed by GitHub
commit c8ec6042e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 37 additions and 14 deletions

View file

@ -27,7 +27,7 @@ COMPILER ?= ido
# gc-eu-mq GameCube Europe/PAL Master Quest
# gc-eu-mq-dbg GameCube Europe/PAL Master Quest Debug (default)
# The following versions are work-in-progress and not yet matching:
# ntsc-1.2 N64 NTSC 1.2 (Japan)
# ntsc-1.2 N64 NTSC 1.2 (Japan/US depending on REGION)
VERSION ?= gc-eu-mq-dbg
# Number of threads to extract and compress with
N_THREADS ?= $(shell nproc)
@ -45,8 +45,10 @@ CFLAGS ?=
CPPFLAGS ?=
CPP_DEFINES ?=
REGIONAL_CHECKSUM := 0
# Version-specific settings
ifeq ($(VERSION),ntsc-1.2)
REGIONAL_CHECKSUM := 1
REGION ?= JP
PLATFORM := N64
PAL := 0
@ -470,13 +472,21 @@ all: rom compress
rom: $(ROM)
ifneq ($(COMPARE),0)
@md5sum $(ROM)
ifneq ($(REGIONAL_CHECKSUM),0)
@md5sum -c $(BASEROM_DIR)/checksum-$(REGION).md5
else
@md5sum -c $(BASEROM_DIR)/checksum.md5
endif
endif
compress: $(ROMC)
ifneq ($(COMPARE),0)
@md5sum $(ROMC)
ifneq ($(REGIONAL_CHECKSUM),0)
@md5sum -c $(BASEROM_DIR)/checksum-$(REGION)-compressed.md5
else
@md5sum -c $(BASEROM_DIR)/checksum-compressed.md5
endif
endif
clean: