blob: 49d0681bf4a6e035df167b7c8e867a61d6e7bc78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
--- start.sh
+++ start.sh
@@ -1,31 +1,30 @@
-#!/bin/bash
+#!/bin/bash
# GOG.com (www.gog.com)
# Game
-# Initialization
-CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-cd "${CURRENT_DIR}"
-source support/gog_com.shlib
-
-# Game info
-GAME_NAME="$(get_gameinfo 1)"
-VERSION="$(get_gameinfo 2)"
-VERSION_DEV="$(get_gameinfo 3)"
+# Initialization
+CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+cd "${CURRENT_DIR}"
+source support/gog_com.shlib
+
+# Game info
+GAME_NAME="$(get_gameinfo 1)"
+VERSION="$(get_gameinfo 2)"
+VERSION_DEV="$(get_gameinfo 3)"
# Actions
-run_game() {
-echo "Running ${GAME_NAME}"
-cd "${CURRENT_DIR}/game"
-chmod +x *
- ./"prog-linux-GOG"
+run_game() {
+ echo "Running ${GAME_NAME}"
+ cd "${CURRENT_DIR}/game"
+ ./"prog-linux-GOG"
}
-default() {
-run_game
-}
+default() {
+ run_game
+}
# Options
-define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
+define_option "-s" "--start" "start ${GAME_NAME}" "run_game" "$@"
# Defaults
-standard_options "$@"
\ No newline at end of file
+standard_options "$@"
|