Specify a custom logo file to use instead of the Nintendo logo (#1400)

Fixes #1398
This commit is contained in:
Sylvie
2024-06-18 14:02:50 -04:00
committed by GitHub
parent 8c3ca462fe
commit 9cc595b2cc
10 changed files with 75 additions and 21 deletions

BIN
test/fix/custom-logo.1bpp Normal file

Binary file not shown.

BIN
test/fix/custom-logo.bin Normal file

Binary file not shown.

1
test/fix/custom-logo.err Normal file
View File

@@ -0,0 +1 @@
warning: Overwrote a non-zero byte in the logo

View File

@@ -0,0 +1 @@
-f l -L custom-logo.1bpp

BIN
test/fix/custom-logo.gb Normal file

Binary file not shown.

View File

@@ -38,7 +38,10 @@ tryCmp () {
}
runTest () {
flags="$(head -n 1 "$2/$1.flags")" # Allow other lines to serve as comments
flags=$(
head -n 1 "$2/$1.flags" | # Allow other lines to serve as comments
sed "s#-L #-L ${src//#/\\#}/#g" # Prepend src directory to logo file
)
for variant in '' ' piped'; do
(( tests++ ))