Skip to content

Commit a453e31

Browse files
committed
Fix the mooneye test rom download
1 parent 6efaf20 commit a453e31

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

library/download_test_roms

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ BLARGG_URL=http://gbdev.gg8.se/files/roms/blargg-gb-tests
1010

1111
# This the official build of the latest mooneye hardware tests
1212
# (https://github.com/Gekkio/mooneye-gb)
13-
MOONEYE_URL=https://gekkio.fi/files/mooneye-gb/latest
13+
MOONEYE_URL=https://gekkio.fi/files/mooneye-test-suite/mts-20240926-1737-443f6e1
1414

1515
ROOT_DIR=$( dirname $0 )
1616

@@ -24,6 +24,10 @@ function download_package {
2424
wget $2/$3.zip -O $TEMPFILE
2525
unzip $TEMPFILE -d $ROOT_DIR/$1
2626
rm -f $TEMPFILE
27+
if [ -e $ROOT_DIR/$1/$3 ]; then
28+
mv $ROOT_DIR/$1/$3/* $ROOT_DIR/$1/
29+
rmdir $ROOT_DIR/$1/$3
30+
fi
2731
touch $ROOT_DIR/$1/$3
2832
fi
2933
}
@@ -32,4 +36,4 @@ download_package blargg_test_roms $BLARGG_URL cpu_instrs
3236
download_package blargg_test_roms $BLARGG_URL instr_timing
3337
download_package blargg_test_roms $BLARGG_URL oam_bug
3438
download_package blargg_test_roms $BLARGG_URL dmg_sound
35-
download_package mooneye_test_roms $MOONEYE_URL mooneye-gb_hwtests
39+
download_package mooneye_test_roms $MOONEYE_URL mts-20240926-1737-443f6e1

0 commit comments

Comments
 (0)