Skip to content

Commit

Permalink
Use RGBDS 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Jun 28, 2024
1 parent 22c7572 commit b359d5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_call:

env:
RGBDS_VERSION: "v0.7.0"
RGBDS_VERSION: "v0.8.0"

jobs:
build-ubuntu:
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cd polishedcrystal
mkdir rgbds
```

Then download [**rgbds**](https://rgbds.gbdev.io/). If you're building Polished Crystal 2.2.0, get rgbds version 0.3.9. If you're building the 3.0.0 beta, you'll need version **0.7.0**. Extract the archive and put all the .exe and .dll files in polishedcrystal/rgbds.
Then download [**rgbds**](https://rgbds.gbdev.io/). If you're building Polished Crystal 2.2.0, get rgbds version 0.3.9. If you're building the 3.0.0 beta master branch, you'll need version 0.7.0. If you're building 9bit or another in-progress feature branch, you'll need version **0.8.0**. Extract the archive and put all the .exe and .dll files in polishedcrystal/rgbds.

To build **polishedcrystal.gbc**:

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ preinclude_deps := includes.asm $(shell tools/scan_includes includes.asm)

define DEP
$1: $2 $$(shell tools/scan_includes $2) $(preinclude_deps) | rgbdscheck.o
$Q$$(RGBDS)rgbasm $$(RGBASM_FLAGS) -L -o $$@ $$<
$Q$$(RGBDS)rgbasm $$(RGBASM_FLAGS) -o $$@ $$<
endef

define VCDEP
$1: $2 $$(shell tools/scan_includes $2) $(preinclude_deps) | rgbdscheck.o
$Q$$(RGBDS)rgbasm $$(RGBASM_VC_FLAGS) -L -o $$@ $$<
$Q$$(RGBDS)rgbasm $$(RGBASM_VC_FLAGS) -o $$@ $$<
endef

ifeq (,$(filter clean tidy tools,$(MAKECMDGOALS)))
Expand Down
11 changes: 2 additions & 9 deletions rgbdscheck.asm
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
if !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__)
fail "polishedcrystal requires rgbds v0.7.0 or newer."
endc

if (__RGBDS_MAJOR__ < 0) || \
(__RGBDS_MAJOR__ == 0 && __RGBDS_MINOR__ < 7) || \
(__RGBDS_MAJOR__ == 0 && __RGBDS_MINOR__ == 7 && __RGBDS_PATCH__ < 0)
(__RGBDS_MAJOR__ == 0 && __RGBDS_MINOR__ == 7 && __RGBDS_PATCH__ == 0 && DEF(__RGBDS_RC__))
fail "polishedcrystal requires rgbds v0.7.0 or newer."
if __RGBDS_MAJOR__ == 0 && __RGBDS_MINOR__ < 8
fail "polishedcrystal requires rgbds v0.8.0 or newer."
endc

0 comments on commit b359d5c

Please sign in to comment.