1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-08 15:30:14 +00:00

Add OOT_PAL_N64 and move other shorthands to versions.h (#2188)

* Move definitions of OOT_NTSC/OOT_PAL/OOT_MQ to versions.h

* Add PAL_N64 shorthand
This commit is contained in:
cadmic 2024-09-12 02:24:31 -07:00 committed by GitHub
parent f193311013
commit 09c1816e2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 42 additions and 51 deletions

View file

@ -51,57 +51,39 @@ ifeq ($(VERSION),ntsc-1.2)
REGIONAL_CHECKSUM := 1
REGION ?= JP
PLATFORM := N64
PAL := 0
MQ := 0
DEBUG := 0
COMPARE := 0
else ifeq ($(VERSION),gc-jp)
REGION ?= JP
PLATFORM := GC
PAL := 0
MQ := 0
DEBUG := 0
else ifeq ($(VERSION),gc-jp-mq)
REGION ?= JP
PLATFORM := GC
PAL := 0
MQ := 1
DEBUG := 0
else ifeq ($(VERSION),gc-jp-ce)
REGION ?= JP
PLATFORM := GC
PAL := 0
MQ := 0
DEBUG := 0
else ifeq ($(VERSION),gc-us)
REGION ?= US
PLATFORM := GC
PAL := 0
MQ := 0
DEBUG := 0
else ifeq ($(VERSION),gc-us-mq)
REGION ?= US
PLATFORM := GC
PAL := 0
MQ := 1
DEBUG := 0
else ifeq ($(VERSION),gc-eu)
REGION ?= EU
PLATFORM := GC
PAL := 1
MQ := 0
DEBUG := 0
else ifeq ($(VERSION),gc-eu-mq)
REGION ?= EU
PLATFORM := GC
PAL := 1
MQ := 1
DEBUG := 0
else ifeq ($(VERSION),gc-eu-mq-dbg)
REGION ?= EU
PLATFORM := GC
PAL := 1
MQ := 1
DEBUG := 1
else
$(error Unsupported version $(VERSION))
@ -147,18 +129,6 @@ else
$(error Unsupported platform $(PLATFORM))
endif
ifeq ($(PAL),0)
CPP_DEFINES += -DOOT_NTSC=1
else
CPP_DEFINES += -DOOT_PAL=1
endif
ifeq ($(MQ),0)
CPP_DEFINES += -DOOT_MQ=0
else
CPP_DEFINES += -DOOT_MQ=1
endif
ifeq ($(DEBUG),1)
CPP_DEFINES += -DOOT_DEBUG=1
OPTFLAGS := -O2