fix rom.39g
This commit is contained in:
parent
bfe17e0470
commit
b4ffa28a15
2 changed files with 6 additions and 6 deletions
4
dist/ROMs/Makefile
vendored
4
dist/ROMs/Makefile
vendored
|
@ -36,5 +36,5 @@ rom.49g:
|
|||
rm rom-49g.zip
|
||||
|
||||
# HP 39g/40g
|
||||
rom.40g:
|
||||
curl "https://www.hpcalc.org/hp40/pc/rom3940.zip" --output - | funzip > "rom.40g"
|
||||
rom.39g:
|
||||
curl "https://www.hpcalc.org/hp39/pc/rom3940.zip" --output - | funzip > "rom.39g"
|
||||
|
|
8
dist/saturn40g
vendored
8
dist/saturn40g
vendored
|
@ -5,7 +5,7 @@ STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
|
|||
STATEDIR=$STATE_HOME/saturn/40g
|
||||
mkdir -p "$STATEDIR"
|
||||
|
||||
if [ ! -e "$STATEDIR"/rom.40g ]; then
|
||||
if [ ! -e "$STATEDIR"/rom.39g ]; then
|
||||
if [ ! -d @PREFIX@/share/saturn/ROMs/ ]; then
|
||||
echo "Error: No ROMs/ dir found"
|
||||
exit 1
|
||||
|
@ -13,8 +13,8 @@ if [ ! -e "$STATEDIR"/rom.40g ]; then
|
|||
if [ ! -d "$STATEDIR"/../ROMs ]; then
|
||||
cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs
|
||||
fi
|
||||
make -C "$STATEDIR"/../ROMs rom.40g
|
||||
cp "$STATEDIR"/../ROMs/rom.40g "$STATEDIR"/rom.40g
|
||||
make -C "$STATEDIR"/../ROMs rom.39g
|
||||
cp "$STATEDIR"/../ROMs/rom.39g "$STATEDIR"/rom.39g
|
||||
fi
|
||||
|
||||
RAM=''
|
||||
|
@ -22,4 +22,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
|
|||
RAM=-reset
|
||||
fi
|
||||
|
||||
@PREFIX@/bin/saturn -face hp40 -hw hp40 -stateDir "$STATEDIR" -rom rom.40g $RAM "$@"
|
||||
@PREFIX@/bin/saturn -face hp40 -hw hp40 -stateDir "$STATEDIR" -rom rom.39g $RAM "$@"
|
||||
|
|
Loading…
Reference in a new issue