purplepup
Member
Hi all
I'm trying to get my old GP2X Reword game running on my Pan as a .pnd, and all is fine apart from the hiscore file not being saved to the appdata directory on exit. The appdata/reword.purplepup directory is being created automatically, but my (below) scripted appdata/reword.purplepup/data/pandora structure is not created and therefore ./data/pandora/hiscore.dat doesn't show up when the game exits.
I'm sure it's something simple but after trawling through the pnd and pxml wiki pages and mounting other peoples pnd's and looking at their startup scripts, I still can't see what's wrong.
I've tried the following run_reword.sh as the pnd executable
If I create the appdata/reword.purplepup/data/pandora/ directory manually, then the hiscore.dat is saved correctly as I would expect. It's just the creation of these initial appdata directories...
Thanks
Al
I'm trying to get my old GP2X Reword game running on my Pan as a .pnd, and all is fine apart from the hiscore file not being saved to the appdata directory on exit. The appdata/reword.purplepup directory is being created automatically, but my (below) scripted appdata/reword.purplepup/data/pandora structure is not created and therefore ./data/pandora/hiscore.dat doesn't show up when the game exits.
I'm sure it's something simple but after trawling through the pnd and pxml wiki pages and mounting other peoples pnd's and looking at their startup scripts, I still can't see what's wrong.
I've tried the following run_reword.sh as the pnd executable
Code:
#!/bin/bash
# create the pandora subdirs if not exist so
# we can save score file to it from the game
if [ -f ./data/pandora/hiscore.dat ]; then
echo "user hiscore.dat exists"
else
mkdir -p ./data/pandora
cp ./data/pandora/pnd_blank_hiscore.dat ./data/pandora/hiscore.dat
fi
#tried this too, i.e. always try, no overwrite, but fails too
#mkdir -p ./data/pandora
#cp -n ./data/pandora/pnd_blank_hiscore.dat ./data/pandora/hiscore.dat
./reword
If I create the appdata/reword.purplepup/data/pandora/ directory manually, then the hiscore.dat is saved correctly as I would expect. It's just the creation of these initial appdata directories...
Thanks
Al