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
21 changed files with 42 additions and 51 deletions
+2
View File
@@ -1,6 +1,8 @@
#ifndef MACROS_H
#define MACROS_H
#include "versions.h"
#ifndef AVOID_UB
#define BAD_RETURN(type) type
#else
+1
View File
@@ -3,6 +3,7 @@
#include "ultra64.h"
#include "message_data_fmt.h"
#include "versions.h"
typedef enum TextBoxType {
/* 0 */ TEXTBOX_TYPE_BLACK,
+2
View File
@@ -1,6 +1,8 @@
#ifndef REGS_H
#define REGS_H
#include "versions.h"
#define REG_GROUPS 29 // number of REG groups, i.e. REG, SREG, OREG, etc.
#define REG_PAGES 6
#define REGS_PER_PAGE 16
+1
View File
@@ -1,6 +1,7 @@
#ifndef SEGMENT_SYMBOLS_H
#define SEGMENT_SYMBOLS_H
#include "versions.h"
#include "z64.h"
#define DECLARE_SEGMENT(name) \
+23
View File
@@ -16,4 +16,27 @@
#define GC_EU_MQ 12
#define GC_JP_CE 13
// NTSC/PAL
#if OOT_VERSION == PAL_1_0 || OOT_VERSION == PAL_1_1 || OOT_VERSION == GC_EU || OOT_VERSION == GC_EU_MQ || OOT_VERSION == GC_EU_MQ_DBG
#define OOT_NTSC 0
#define OOT_PAL 1
#else
#define OOT_NTSC 1
#define OOT_PAL 0
#endif
// PAL N64 (50 Hz)
#if OOT_VERSION == PAL_1_0 || OOT_VERSION == PAL_1_1
#define OOT_PAL_N64 1
#else
#define OOT_PAL_N64 0
#endif
// Master Quest
#if OOT_VERSION == GC_JP_MQ || OOT_VERSION == GC_US_MQ || OOT_VERSION == GC_EU_MQ || OOT_VERSION == GC_EU_MQ_DBG
#define OOT_MQ 1
#else
#define OOT_MQ 0
#endif
#endif
+1
View File
@@ -6,6 +6,7 @@
#include "attributes.h"
#include "audiomgr.h"
#include "controller.h"
#include "versions.h"
#include "z64save.h"
#include "z64light.h"
#include "z64bgcheck.h"
+1
View File
@@ -2,6 +2,7 @@
#define Z64MESSAGE_H
#include "z64view.h"
#include "versions.h"
struct OcarinaStaff;
struct Actor;
+1
View File
@@ -2,6 +2,7 @@
#define Z64SAVE_H
#include "ultra64.h"
#include "versions.h"
#include "z64math.h"
typedef enum Language {