This repository was archived by the owner on Aug 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathBuildConfig.asm
More file actions
57 lines (47 loc) · 1.47 KB
/
Copy pathBuildConfig.asm
File metadata and controls
57 lines (47 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Determines which platform to target, retail or debug:
#.set RETAIL_BUILD, 1
#.set DEBUG_BUILD, 1
# Determines which game to target for the exploit:
#.set TONY_HAWK_AW, 1
# Sanity check compiler flags.
.ifdef RETAIL_BUILD
.ifdef DEBUG_BUILD
.error "RETAIL_BUILD and DEBUG_BUILD cannot be specified at the same time"
.endif
.else
.ifndef DEBUG_BUILD
.error "Must specify one of RETAIL_BUILD or DEBUG_BUILD"
.endif
.endif
.ifdef DEBUG_BUILD
.ifdef RETAIL_BUILD
.error "RETAIL_BUILD and DEBUG_BUILD cannot be specified at the same time"
.endif
.else
.ifndef RETAIL_BUILD
.error "Must specify one of RETAIL_BUILD or DEBUG_BUILD"
.endif
.endif
###########################################################
# Include kernel config for specified platform.
.ifdef RETAIL_BUILD
.include "KernelConfig_Retail_17559.asm"
.else
.include "KernelConfig_Debug.asm"
.endif
# Make sure the kernel version is specified which indicates the kernel address file was included.
.ifndef KRNL_VER
.error "Kernel config not specified"
.endif
###########################################################
# Include game config for specified target.
.ifdef TONY_HAWK_AW
.include "TonyHawk.asm"
.endif
.ifdef RB_BLITZ
.include "RBBlitz.asm"
.endif
# Sanity check the game config.
.ifndef RuntimeDataSegmentAddress
.error "Game config must define RuntimeDataSegmentAddress to a valid address"
.endif