Skip to content

Commit f58dbe3

Browse files
committed
Require rgbds 0.6.0
1 parent 2b52ceb commit f58dbe3

18 files changed

+43
-373
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@master
1717
with:
1818
path: rgbds
19-
ref: v0.5.2
19+
ref: v0.6.0
2020
repository: gbdev/rgbds
2121

2222
- name: Install rgbds

INSTALL.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Run setup and leave the default settings. At the "**Select Packages**" step, cho
4242

4343
Double click on the text that says "**Skip**" next to each package to select the most recent version to install.
4444

45-
Then follow the [**rgbds** install instructions](https://rgbds.gbdev.io/install#pre-built) for Windows with Cygwin to install **rgbds 0.5.2**.
45+
Then follow the [**rgbds** install instructions](https://rgbds.gbdev.io/install#pre-built) for Windows with Cygwin to install **rgbds 0.6.0**.
4646

47-
**Note:** If you already have an older rgbds, you will need to update to 0.5.2. Ignore this if you have never installed rgbds before. If a version newer than 0.5.2 does not work, try downloading 0.5.2.
47+
**Note:** If you already have an older rgbds, you will need to update to 0.6.0. Ignore this if you have never installed rgbds before. If a version newer than 0.6.0 does not work, try downloading 0.6.0.
4848

4949
Now open the **Cygwin terminal** and enter the following commands.
5050

@@ -67,7 +67,7 @@ Install [**Homebrew**](https://brew.sh/). Follow the official instructions.
6767

6868
Open **Terminal** and prepare to enter commands.
6969

70-
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for macOS to install **rgbds 0.5.2**.
70+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for macOS to install **rgbds 0.6.0**.
7171

7272
Now you're ready to [build **pokered**](#build-pokered).
7373

@@ -84,7 +84,7 @@ To install the software required for **pokered**:
8484
sudo apt-get install make gcc git
8585
```
8686

87-
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.5.2** from source.
87+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.6.0** from source.
8888

8989
### OpenSUSE
9090

@@ -94,7 +94,7 @@ To install the software required for **pokered**:
9494
sudo zypper install make gcc git
9595
```
9696

97-
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.5.2** from source.
97+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.6.0** from source.
9898

9999
### Arch Linux
100100

@@ -104,9 +104,9 @@ To install the software required for **pokered**:
104104
sudo pacman -S make gcc git
105105
```
106106

107-
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for Arch Linux to install **rgbds 0.5.2**.
107+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for Arch Linux to install **rgbds 0.6.0**.
108108

109-
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.5.2** from source.
109+
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.6.0** from source.
110110

111111
### Termux
112112

@@ -122,7 +122,7 @@ To install **rgbds**:
122122
sudo apt install rgbds
123123
```
124124

125-
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.5.2** from source.
125+
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.6.0** from source.
126126

127127
### Other distros
128128

@@ -133,7 +133,7 @@ If your distro is not listed here, try to find the required software in its repo
133133
- `git`
134134
- `rgbds`
135135

136-
If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.5.2** from source.
136+
If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.6.0** from source.
137137

138138
Now you're ready to [build **pokered**](#build-pokered).
139139

@@ -155,8 +155,8 @@ make
155155

156156
### Build with a local rgbds version
157157

158-
If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 0.5.2 globally. Instead, you can put its files in a directory within pokered, such as `pokered/rgbds-0.5.2/`. Then specify it when you run `make`:
158+
If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 0.6.0 globally. Instead, you can put its files in a directory within pokered, such as `pokered/rgbds-0.6.0/`. Then specify it when you run `make`:
159159

160160
```bash
161-
make RGBDS=rgbds-0.5.2/
161+
make RGBDS=rgbds-0.6.0/
162162
```

Makefile

+11-11
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ tools:
8585
$(MAKE) -C tools/
8686

8787

88-
RGBASMFLAGS = -h -L -Weverything -Wnumeric-string=2 -Wtruncation=1
88+
RGBASMFLAGS = -hL -Q8 -P includes.asm -Weverything -Wnumeric-string=2 -Wtruncation=1
8989
# Create a sym/map for debug purposes if `make` run with `DEBUG=1`
9090
ifeq ($(DEBUG),1)
9191
RGBASMFLAGS += -E
@@ -107,7 +107,7 @@ rgbdscheck.o: rgbdscheck.asm
107107
# As a side effect, they're evaluated immediately instead of when the rule is invoked.
108108
# It doesn't look like $(shell) can be deferred so there might not be a better way.
109109
define DEP
110-
$1: $2 $$(shell tools/scan_includes $2) | rgbdscheck.o
110+
$1: $2 $$(shell tools/scan_includes $2) | includes.asm rgbdscheck.o
111111
$$(RGBASM) $$(RGBASMFLAGS) -o $$@ $$<
112112
endef
113113

@@ -125,8 +125,8 @@ $(foreach obj, $(pokered_vc_obj), $(eval $(call DEP,$(obj),$(obj:_red_vc.o=.asm)
125125
$(foreach obj, $(pokeblue_vc_obj), $(eval $(call DEP,$(obj),$(obj:_blue_vc.o=.asm))))
126126

127127
# Dependencies for VC files that need to run scan_includes
128-
%.constants.sym: %.constants.asm $(shell tools/scan_includes %.constants.asm) | rgbdscheck.o
129-
$(RGBASM) $< > $@
128+
%.constants.sym: %.constants.asm $(shell tools/scan_includes %.constants.asm) | includes.asm rgbdscheck.o
129+
$(RGBASM) $(RGBASMFLAGS) $< > $@
130130

131131
endif
132132

@@ -156,13 +156,13 @@ pokeblue_vc_opt = -jsv -n 0 -k 01 -l 0x33 -m 0x13 -r 03 -t "POKEMON BLUE"
156156
gfx/battle/move_anim_0.2bpp: tools/gfx += --trim-whitespace
157157
gfx/battle/move_anim_1.2bpp: tools/gfx += --trim-whitespace
158158

159-
gfx/intro/blue_jigglypuff_1.2bpp: rgbgfx += -h
160-
gfx/intro/blue_jigglypuff_2.2bpp: rgbgfx += -h
161-
gfx/intro/blue_jigglypuff_3.2bpp: rgbgfx += -h
162-
gfx/intro/red_nidorino_1.2bpp: rgbgfx += -h
163-
gfx/intro/red_nidorino_2.2bpp: rgbgfx += -h
164-
gfx/intro/red_nidorino_3.2bpp: rgbgfx += -h
165-
gfx/intro/gengar.2bpp: rgbgfx += -h
159+
gfx/intro/blue_jigglypuff_1.2bpp: rgbgfx += -Z
160+
gfx/intro/blue_jigglypuff_2.2bpp: rgbgfx += -Z
161+
gfx/intro/blue_jigglypuff_3.2bpp: rgbgfx += -Z
162+
gfx/intro/red_nidorino_1.2bpp: rgbgfx += -Z
163+
gfx/intro/red_nidorino_2.2bpp: rgbgfx += -Z
164+
gfx/intro/red_nidorino_3.2bpp: rgbgfx += -Z
165+
gfx/intro/gengar.2bpp: rgbgfx += -Z
166166
gfx/intro/gengar.2bpp: tools/gfx += --remove-duplicates --preserve=0x19,0x76
167167

168168
gfx/credits/the_end.2bpp: tools/gfx += --interleave --png=$<

audio.asm

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
INCLUDE "constants.asm"
2-
3-
41
SECTION "Sound Effect Headers 1", ROMX
52
INCLUDE "audio/headers/sfxheaders1.asm"
63

home.asm

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
INCLUDE "constants.asm"
2-
3-
41
SECTION "NULL", ROM0
52
NULL::
63

constants.asm renamed to includes.asm

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
INCLUDE "charmap.asm"
22

3-
INCLUDE "macros.asm"
3+
INCLUDE "macros/asserts.asm"
4+
INCLUDE "macros/const.asm"
5+
INCLUDE "macros/predef.asm"
6+
INCLUDE "macros/farcall.asm"
7+
INCLUDE "macros/data.asm"
8+
INCLUDE "macros/code.asm"
9+
INCLUDE "macros/gfx.asm"
10+
INCLUDE "macros/coords.asm"
11+
INCLUDE "macros/vc.asm"
12+
13+
INCLUDE "macros/scripts/audio.asm"
14+
INCLUDE "macros/scripts/maps.asm"
15+
INCLUDE "macros/scripts/events.asm"
16+
INCLUDE "macros/scripts/text.asm"
417

518
INCLUDE "constants/hardware_constants.asm"
619
INCLUDE "constants/oam_constants.asm"

macros.asm

-14
This file was deleted.

main.asm

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
INCLUDE "constants.asm"
2-
3-
41
SECTION "bank1", ROMX
52

63
INCLUDE "data/sprites/facings.asm"

maps.asm

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
INCLUDE "constants.asm"
2-
3-
41
SECTION "Maps 1", ROMX
52

63
INCLUDE "data/maps/headers/CeladonCity.asm"

ram.asm

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
INCLUDE "constants.asm"
2-
31
INCLUDE "macros/ram.asm"
42

53

rgbdscheck.asm

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
MAJOR EQU 0
2-
MINOR EQU 5
3-
PATCH EQU 2
2+
MINOR EQU 6
3+
PATCH EQU 0
44

5-
MACRO wrong_rgbds
6-
fail "pokered requires rgbds v0.5.2 or newer."
7-
ENDM
5+
WRONG_RGBDS EQUS "fail \"pokered requires rgbds v0.6.0 or newer.\""
86

97
IF !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__)
10-
wrong_rgbds
8+
WRONG_RGBDS
119
ELSE
1210
IF (__RGBDS_MAJOR__ < MAJOR) || \
1311
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ < MINOR) || \
1412
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ == MINOR && __RGBDS_PATCH__ < PATCH) || \
1513
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ == MINOR && __RGBDS_PATCH__ == PATCH && DEF(__RGBDS_RC__))
16-
wrong_rgbds
14+
WRONG_RGBDS
1715
ENDC
1816
ENDC

text.asm

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
INCLUDE "constants.asm"
2-
3-
41
SECTION "Text 1", ROMX
52

63
INCLUDE "data/text/text_1.asm"

tools/free_space.awk

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function register_bank(amount) {
3939
}
4040
}
4141

42-
rom_bank && toupper($0) ~ /^[ \t]*EMPTY/ {
42+
rom_bank && toupper($0) ~ /^[ \t]*EMPTY$/ {
4343
# Empty bank
4444
register_bank(16384)
4545
}

tools/free_space.py

-69
This file was deleted.

0 commit comments

Comments
 (0)