diff options
-rw-r--r-- | games/fallout | 4 | ||||
-rwxr-xr-x | play.sh | 6 | ||||
-rw-r--r-- | templates/iso | 18 |
3 files changed, 27 insertions, 1 deletions
diff --git a/games/fallout b/games/fallout index de59949..42912b0 100644 --- a/games/fallout +++ b/games/fallout @@ -1,6 +1,10 @@ +inherit iso + PREFIX="~/.fallout" SIZE="640x480" GPATH="c:/spiele/fallout/falloutw.exe" EXARGS="-depth 16" +MOUNT="Fallout.iso" + # vim:ft=sh @@ -98,7 +98,10 @@ default_run () { exc wineserver -w } -EXPORT default execute prepare setenv run +default_cleanup () { +} + +EXPORT default execute prepare setenv run cleanup # }}} if [[ $1 == "-x" ]]; then @@ -106,6 +109,7 @@ if [[ $1 == "-x" ]]; then setenv prepare run + cleanup else GAME=$1 DGAME="$PLAY_GAMES/$GAME" diff --git a/templates/iso b/templates/iso new file mode 100644 index 0000000..3b08b02 --- /dev/null +++ b/templates/iso @@ -0,0 +1,18 @@ + +iso_prepare () { + default_prepare + + declare -g MOUNT MOUNTTARGET + + [[ $MOUNT != /* ]] && MOUNT="$HOME/isos/spiele/$MOUNT" + [[ -z $MOUNTTARGET ]] && MOUNTTARGET="$HOME/isos/mnt" + exc fuseiso $MOUNT $MOUNTTARGET +} + +iso_cleanup () { + exc fusermount -u $MOUNTTARGET +} + +EXPORT iso prepare cleanup + +# vim:ft=sh |