mirror of
https://github.com/digarok/TransWarpGS-ROM.git
synced 2025-02-18 20:30:45 +00:00
25 lines
604 B
Bash
Executable File
25 lines
604 B
Bash
Executable File
#!/bin/bash
|
|
if ! command -v vimdiff &> /dev/null
|
|
then
|
|
echo "Sorry this requires vimdiff."
|
|
exit
|
|
fi
|
|
|
|
HEXDUMP=hihex
|
|
if ! command -v $HEXDUMP &> /dev/null
|
|
then
|
|
echo "$HEXDUMP could not be found. "
|
|
echo "It is recommended you download this and put it in your path."
|
|
echo " https://github.com/digarok/hihex/releases/"
|
|
echo ""
|
|
sleep 2
|
|
echo "We will revert to hexdump, which does not show high-bit ascii appropriately."
|
|
echo ""
|
|
sleep 3
|
|
$HEXDUMP=hexdump
|
|
fi
|
|
|
|
|
|
|
|
vimdiff <($HEXDUMP -offset 0xbc8000 src/twgs_1.8s/twgs) <($HEXDUMP -offset 0xbc8000 rom/twgs_1.8s/twgs-rom.bin)
|