#!/bin/bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
GOGID=
"mdk"
PREFIX=
"MDK_gog"
WORKING_WINE_VERSION=
"1.6.2"
TITLE=
"GOG.com - MDK"
SHORTCUT_NAME=
"MDK"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1514
POL_Debug_Init
POL_Call
POL_GoG_setup
"$GOGID"
"a1e4dcdffd2de0d4f4dcbc3db30cbca6"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_Install_nop
"$WINEPREFIX/drive_c/windows/system32/sdbinst.exe"
POL_Call
POL_GoG_install
Set_OS winxp
POL_SetupWindow_VMS
"4"
POL_Wine_reboot
cat
<<
'_EOFCFG_'
>
"$WINEPREFIX/drive_c/GOG Games/MDK/MDK.CFG"
; MDK Configuration
file
automatically generated by MDK
cddata =
hddata =
hduse = 2
MouseWAxesMap = A0G
MouseWButtMapB = 2
MouseWButtMapC = 0
KeyUp = 44
KeyDown = 31
KeyJump = 57
KeyFire = 45
KeySniper = 56
KeyLookUp = 19
KeyLookDown = 33
KeyZoomIn = 19
KeyZoomOut = 33
KeySideL = 16
KeySideR = 32
ForcePCorrect = TRUE
D3DOptions = -1073610643
_EOFCFG_
POL_Shortcut
"MDK3DFX.EXE"
"$SHORTCUT_NAME"
"$SHORTCUT_NAME.png"
""
"Game;ActionGame;"
POL_Shortcut_Document
"$SHORTCUT_NAME"
"$WINEPREFIX/drive_c/GOG Games/MDK/MANUAL.PDF"
POL_SetupWindow_Close
cat
<<_EOF_ >
"$POL_USER_ROOT/configurations/configurators/$SHORTCUT_NAME"
#!/bin/bash
[ -z
"\$PLAYONLINUX"
] &&
exit
0
source
"\$PLAYONLINUX/lib/sources"
export
WINEPREFIX=
"\$POL_USER_ROOT/wineprefix/$PREFIX"
export
WINEDEBUG=
"-all"
POL_LoadVar_PROGRAMFILES
cd
"\$WINEPREFIX/drive_c/GOG Games/MDK/"
||
exit
1
TITLE=
"$TITLE"
POL_Wine
nglide_config.exe
exit
0
_EOF_
exit
0