#!/bin/bash
[ -z
"$PLAYONLINUX"
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"GOG.com - Personal Nightmare"
PREFIX=
"PersonalNightmare_gog"
WORKING_WINE_VERSION=
"1.4-dos_support_0.6"
POL_ID=1973
GOG_ID=
"personal_nightmare"
GOG_MD5=
"fa7e91869a5ab191af892cfb5b169a43"
COMPANY=
"Horrorsoft / Adventure Soft"
SCRIPT_AUTHOR=
"MindLikeWater"
SHORTCUT_NAME=
"Personal Nightmare"
SHORTCUT_CATEGORY=
"Game;AdventureGame;"
INSTALL_DIR=
"GOG Games/Personal Nightmare"
EXECUTABLE=
"Test.exe"
MANUAL=
"manual.pdf"
POL_GetSetupImages \
"$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID $POL_ID
POL_Debug_Init
POL_SetupWindow_presentation
\
"$TITLE"
\
"$COMPANY"
\
"$PUBLISHER_HOMEPAGE"
\
"$SCRIPT_AUTHOR"
\
"$PREFIX"
POL_Call
POL_GoG_setup
"$GOG_ID"
"$GOG_MD5"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_GoG_install
POL_SetupWindow_VMS
"1"
cat
<<_EOFCFG_ >>
"$WINEPREFIX/playonlinux_dos.cfg"
cpu_core=simple
cpu_cputype=386_slow
cpu_cycles=auto
render_aspect=
true
render_frameskip=1
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=40
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=
true
sblaster_oplmode=auto
sblaster_oplrate=22050
gus_gus=
false
_EOFCFG_
POL_Shortcut
\
"$INSTALL_DIR/$EXECUTABLE"
\
"$SHORTCUT_NAME"
\
"$SHORTCUT_NAME.png"
\
""
\
"$SHORTCUT_CATEGORY"
POL_Shortcut_InsertBeforeWine \
"$SHORTCUT_NAME"
\
"export SDL_VIDEO_X11_DGAMOUSE=0"
POL_Shortcut_Document \
"$SHORTCUT_NAME"
\
"$WINEPREFIX/drive_c/$INSTALL_DIR/$MANUAL"
POL_SetupWindow_Close
exit
0