View Single Post
Posts: 23 | Thanked: 5 times | Joined on Mar 2011 @ Philippines
#368
I modified Kozzi's script to run the games with a launcher... a simple cp commands will do the trick to enable saving game progress automatically...

here's an outline

#!/bin/sh

cd /home/user/.apkenv/
case "$1" in
<game 1>)
cp <savegame path for game 1>/*.lua ./;;
<game 2>)
cp <savegame path for game 2>/*.lua ./;;
etc...
esac


cd /home/user/apkenv/
case "$1" in
<game 1>)
./apkenv ./apps/<game 1 apk>
cp ./.apkenv/*.lua <savegame path for game 1>/
;;
<game 2>)
./apkenv ./apps/<game 2 apk>
cp ./.apkenv/*.lua <savegame path for game 2>/
;;
etc....
esac