[SCM] Installer for game data files branch, quake, updated. 96ca7132050fb5efd8d92a7f7c5a374a234f002d
Jon Dowland
jmtd at debian.org
Tue Apr 5 21:05:59 UTC 2011
The following commit has been merged in the quake branch:
commit 96ca7132050fb5efd8d92a7f7c5a374a234f002d
Author: Jon Dowland <jmtd at debian.org>
Date: Tue Apr 5 22:05:47 2011 +0100
quake: guess_method for a mountpoint
diff --git a/supported/quake b/supported/quake
index 9bcb8f2..9736f14 100644
--- a/supported/quake
+++ b/supported/quake
@@ -47,6 +47,7 @@ go() {
verify_args "$@"
case "$method" in
"guess")
+ guess_method
;;
"cdrom")
cdrom_method
@@ -60,6 +61,18 @@ go() {
esac
}
+guess_method() {
+ if [ -f "$mountpoint/id1/pak0.pak" ]; then
+ debug "treating $mountpoint like an installed directory"
+ dir_method
+ elif [ -f "$mountpoint/q101_int.1" ]; then
+ debug "treating $mountpoint like a CD-ROM"
+ cdrom_method
+ else
+ die "couldn't figure out what method to use for mountpoint $mountpoint"
+ fi
+}
+
cdrom_method() {
bit1="$mountpoint/q101_int.1"
bit2="$mountpoint/q101_int.2"
--
Installer for game data files
More information about the Pkg-games-commits
mailing list