forked from mattcaron/playonlinux
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathanvil_of_dawn-gog
75 lines (63 loc) · 1.98 KB
/
anvil_of_dawn-gog
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env playonlinux-bash
# Date : (2014-08-01 18:50:55)
# Last revision : (2014-08-03 11:48:47)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04
# Author : Victor Ochoa (kanito8a)
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
# CONSTANTS
GOGID="anvil_of_dawn"
PREFIX="AnvilofDawn_gog"
WORKING_WINE_VERSION="1.6.2-dos_support_0.6"
TITLE="GOG.com - Anvil of Dawn"
DEVELOPER="DreamForge Intertainment / Ubisoft"
INSTALL_FILE_HASH="8ecba50452dbe230a2e1a868be422dc6"
INSTALL_DIR="Anvil of Dawn"
EXEC="ANVIL.EXE"
MANUAL="Anvil of Dawn - Manual.pdf"
SHORTCUT_NAME="Anvil of Dawn"
# IMAGES SETUP
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.png" "http://files.playonlinux.com/resources/setups
/$PREFIX/left.png" "$TITLE"
# INSTALLATION
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "http://www.gog.com/gamecard/$GOGID" "Victor Ochoa" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "$INSTALL_FILE_HASH"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Call POL_GoG_install
# DOSBOX AUTOEXEC
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount d "$WINEPREFIX/drive_c/GOG Games/$INSTALL_DIR/Anvil.dat" -t iso -fs iso
_EOFAE_
# DOSBOX CONFIG
cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_memsize=16
cpu_core=auto
cpu_cputype=auto
cpu_cycles=20000
render_aspect=true
mixer_blocksize=1024
mixer_prebuffer=240
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=5
sblaster_dma=1
sblaster_hdma=5
sblaster_sbmixer=true
sblaster_oplmode=auto
sblaster_oplemu=default
sblaster_oplrate=44100
_EOFCFG_
# SHORTCUTS
POL_Shortcut "GOG Games/$INSTALL_DIR/$EXEC" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "-p" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/$INSTALL_DIR/$MANUAL"
# THE END
POL_SetupWindow_Close
exit 0