#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"GOG.com - Constructor"
PREFIX=
"Constructor"
WORKING_WINE_VERSION=
"1.6.2-dos_support_0.6"
SHORTCUT_NAME=
"Constructor"
GOGID=
"constructor"
POL_SetupWindow_Init
POL_SetupWindow_SetID
POL_Debug_Init
POL_SetupWindow_presentation
"$TITLE"
"System 3"
"Retailer: www.gog.com"
"Benjamin Hardy"
"$PREFIX"
POL_Call
POL_GoG_setup
"$GOGID"
"764f989d66969b3ffefcba3e3d15b281"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WORKING_WINE_VERSION"
POL_Call
POL_GoG_install
cat
<<
'_EOFCONFIG_'
>>
"$WINEPREFIX/playonlinux_dos.cfg"
sdl_fullscreen=
true
sdl_fulldouble=
false
sdl_fullresolution=original
sdl_windowresolution=original
sdl_output=overlay
sdl_autolock=
true
sdl_sensitivity=85
sdl_waitonerror=
true
sdl_priority=higher,normal
sdl_mapperfile=mapper.txt
sdl_usescancodes=
true
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=32
render_frameskip=0
render_aspect=
false
render_scaler=normal2x
cpu_core=auto
cpu_cputype=auto
cpu_cycles=max
cpu_cycleup=1000
cpu_cycledown=1000
mixer_nosound=
false
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=80
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=22050
joystick_joysticktype=none
gus_gus=
false
speaker_pcspeaker=
false
speaker_tandy=off
speaker_disney=
false
_EOFCONFIG_
cat
<<_EOFAUTOEXE_ >
"$WINEPREFIX/drive_c/autoexec.bat"
mount
-u c
mount
c:
"$WINEPREFIX/drive_c/GOG Games/Constructor"
imgmount D
"$GOGROOT/Constructor/const.gog"
-t iso -fs iso
_EOFAUTOEXE_
POL_Wine_reboot
POL_Shortcut
"GAME.EXE"
"$SHORTCUT_NAME"
""
""
"Game;StrategyGame;"
POL_SetupWindow_Close
exit
0