2023-06-04 17:57:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2023-08-05 01:37:09 +02:00
|
|
|
REMOTE="--remote ${REMOTE:-host.docker.internal:9064}"
|
2023-06-04 17:57:31 +02:00
|
|
|
|
|
|
|
## FIXME: this does not work!
|
|
|
|
# Make sure we are connected
|
|
|
|
#echo Detecting SC64...
|
|
|
|
#sc64deployer $REMOTE list
|
|
|
|
|
|
|
|
# Get the information
|
|
|
|
echo SC64 info...:
|
|
|
|
sc64deployer $REMOTE info
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|
|
|
|
# Load the ROM
|
|
|
|
echo Loading ROM...:
|
2023-08-05 01:37:09 +02:00
|
|
|
sc64deployer $REMOTE upload ./output/N64FlashcartMenu.n64
|
2023-06-04 17:57:31 +02:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
# Toggle the power of the N64 to boot the ROM.
|
|
|
|
echo !!! Now toggle power to the N64 !!!
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|
|
|
|
if [ "$1" = "-d" ]; then
|
2023-08-05 01:37:09 +02:00
|
|
|
sc64deployer $REMOTE debug --no-writeback
|
2023-06-04 17:57:31 +02:00
|
|
|
fi
|