fix rom.39g

This commit is contained in:
Gwenhael Le Moine 2024-08-25 18:01:16 +02:00
parent bfe17e0470
commit b4ffa28a15
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 6 additions and 6 deletions

4
dist/ROMs/Makefile vendored
View file

@ -36,5 +36,5 @@ rom.49g:
rm rom-49g.zip rm rom-49g.zip
# HP 39g/40g # HP 39g/40g
rom.40g: rom.39g:
curl "https://www.hpcalc.org/hp40/pc/rom3940.zip" --output - | funzip > "rom.40g" curl "https://www.hpcalc.org/hp39/pc/rom3940.zip" --output - | funzip > "rom.39g"

8
dist/saturn40g vendored
View file

@ -5,7 +5,7 @@ STATE_HOME=${XDG_STATE_HOME:-$HOME/.local/state}
STATEDIR=$STATE_HOME/saturn/40g STATEDIR=$STATE_HOME/saturn/40g
mkdir -p "$STATEDIR" mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/rom.40g ]; then if [ ! -e "$STATEDIR"/rom.39g ]; then
if [ ! -d @PREFIX@/share/saturn/ROMs/ ]; then if [ ! -d @PREFIX@/share/saturn/ROMs/ ]; then
echo "Error: No ROMs/ dir found" echo "Error: No ROMs/ dir found"
exit 1 exit 1
@ -13,8 +13,8 @@ if [ ! -e "$STATEDIR"/rom.40g ]; then
if [ ! -d "$STATEDIR"/../ROMs ]; then if [ ! -d "$STATEDIR"/../ROMs ]; then
cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs cp -R @PREFIX@/share/saturn/ROMs/ "$STATEDIR"/../ROMs
fi fi
make -C "$STATEDIR"/../ROMs rom.40g make -C "$STATEDIR"/../ROMs rom.39g
cp "$STATEDIR"/../ROMs/rom.40g "$STATEDIR"/rom.40g cp "$STATEDIR"/../ROMs/rom.39g "$STATEDIR"/rom.39g
fi fi
RAM='' RAM=''
@ -22,4 +22,4 @@ if [ ! -e "$STATEDIR"/ram ]; then
RAM=-reset RAM=-reset
fi 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 "$@"