mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
27
test/patches/pokecrystal.patch
Normal file
27
test/patches/pokecrystal.patch
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 387c2cca1..856968189 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -104,7 +104,7 @@ tools:
|
||||||
|
$(MAKE) -C tools/
|
||||||
|
|
||||||
|
|
||||||
|
-RGBASMFLAGS = -L -Weverything -Wnumeric-string=2 -Wtruncation=1
|
||||||
|
+RGBASMFLAGS = -L -Weverything -Wnumeric-string=2 -Wtruncation=1 -Q8
|
||||||
|
# Create a sym/map for debug purposes if `make` run with `DEBUG=1`
|
||||||
|
ifeq ($(DEBUG),1)
|
||||||
|
RGBASMFLAGS += -E
|
||||||
|
diff --git a/macros/data.asm b/macros/data.asm
|
||||||
|
index c2686c9f4..4dac70f3a 100644
|
||||||
|
--- a/macros/data.asm
|
||||||
|
+++ b/macros/data.asm
|
||||||
|
@@ -97,7 +97,7 @@ MACRO sine_table
|
||||||
|
; \1 samples of sin(x) from x=0 to x<32768 (pi radians)
|
||||||
|
DEF x = 0
|
||||||
|
rept \1
|
||||||
|
- dw (sin(x) + (sin(x) & $ff)) >> 8 ; round up
|
||||||
|
- DEF x += DIV(32768, \1) ; a circle has 65536 "degrees"
|
||||||
|
+ dw sin(x)
|
||||||
|
+ DEF x += 0.5 / (\1)
|
||||||
|
endr
|
||||||
|
ENDM
|
||||||
@@ -25,32 +25,20 @@ done
|
|||||||
# When updating subprojects, change the commit being checked out, and set the `shallow-since`
|
# When updating subprojects, change the commit being checked out, and set the `shallow-since`
|
||||||
# to the day before, to reduce the amount of refs being transferred and thus speed up CI.
|
# to the day before, to reduce the amount of refs being transferred and thus speed up CI.
|
||||||
|
|
||||||
if [ ! -d pokecrystal ]; then
|
test_downstream() { # owner/repo shallow-since commit make-target
|
||||||
git clone https://github.com/pret/pokecrystal.git --shallow-since=2022-03-12 --single-branch
|
if [ ! -d ${1##*/} ]; then
|
||||||
fi
|
git clone https://github.com/$1.git --shallow-since=$2 --single-branch
|
||||||
pushd pokecrystal
|
fi
|
||||||
git fetch
|
pushd ${1##*/}
|
||||||
git checkout a3e31d6463e6313aed12ebc733b3f772f2fc78d7
|
git checkout -f $3
|
||||||
make clean
|
if [ -f ../patches/${1##*/}.patch ]; then
|
||||||
make -j4 compare RGBDS=../../
|
git apply --ignore-whitespace ../patches/${1##*/}.patch
|
||||||
popd
|
fi
|
||||||
|
make clean
|
||||||
|
make -j4 $4 RGBDS=../../
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
if [ ! -d pokered ]; then
|
test_downstream pret/pokecrystal 2022-09-26 a9869f18962353b056559dc14dfc00fef0df5978 compare
|
||||||
git clone https://github.com/pret/pokered.git --shallow-since=2022-03-07 --single-branch
|
test_downstream pret/pokered 2022-09-25 22859c4bb70dba17994c9b47b07f657ea082875d compare
|
||||||
fi
|
test_downstream AntonioND/ucity 2022-04-20 d8878233da7a6569f09f87b144cb5bf140146a0f ''
|
||||||
pushd pokered
|
|
||||||
git fetch
|
|
||||||
git checkout a75dd222709c92ae136d835ff2451391d5a88e45
|
|
||||||
make clean
|
|
||||||
make -j4 compare RGBDS=../../
|
|
||||||
popd
|
|
||||||
|
|
||||||
if [ ! -d ucity ]; then
|
|
||||||
git clone https://github.com/AntonioND/ucity.git --shallow-since=2020-11-01 --single-branch
|
|
||||||
fi
|
|
||||||
pushd ucity
|
|
||||||
git fetch
|
|
||||||
git checkout d8878233da7a6569f09f87b144cb5bf140146a0f
|
|
||||||
make clean
|
|
||||||
make -j4 RGBDS=../../
|
|
||||||
popd
|
|
||||||
|
|||||||
Reference in New Issue
Block a user