diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-06-15 12:39:13 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-06-15 12:39:13 +0200 |
commit | ab3e5aa5976b408218ca884f08d560e8de09ce70 (patch) | |
tree | 7715cd587d8bd9fc1a6b51ba99696609998e3c61 | |
parent | e9ec8fab6c1e2c7fe3a0b722d4dbd52d7563d3e4 (diff) | |
download | play-ab3e5aa5976b408218ca884f08d560e8de09ce70.tar.gz play-ab3e5aa5976b408218ca884f08d560e8de09ce70.tar.bz2 play-ab3e5aa5976b408218ca884f08d560e8de09ce70.zip |
Added iso template
-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 |