#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"GOG.com - Heroes of Might and Magic"
SHORTCUT_NAME=
"Heroes of Might and Magic"
SHORTCUT_NAME_EDITOR=
"Heroes of Might and Magic Map Editor"
GOGID=
"heroes_of_might_and_magic"
SETUPMD5=
"5cc2353c2e73bbb65ed94009df0dd0cc"
PREFIX=
"HOMM1_gog"
WINEVERSION=
"1.4-dos_support_0.6"
POL_SetupWindow_Init
POL_Call
POL_GoG_setup
"$GOGID"
"$SETUPMD5"
POL_Wine_SelectPrefix
"$PREFIX"
POL_Wine_PrefixCreate
"$WINEVERSION"
INSTALLPATH=
"$WINEPREFIX/drive_c/Program Files/GOG.com/Heroes Of Might And Magic"
POL_Call
POL_GoG_install
cat
<<
'_EOFCFG_'
>>
"$WINEPREFIX/playonlinux_dos.cfg"
sdl_fullscreen=
true
sdl_fulldouble=
false
sdl_fullresolution=original
sdl_windowresolution=original
sdl_output=overlay
sdl_autolock=
true
sdl_sensitivity=100
sdl_waitonerror=
true
sdl_priority=higher,normal
sdl_mapperfile=mapper.txt
sdl_usescancodes=
true
dosbox_language=
dosbox_machine=vga
dosbox_captures=capture
dosbox_memsize=16
render_p=0
render_aspect=
false
render_scaler=normal2x
cpu_core=auto
cpu_cycles=max
cpu_cycleup=500
cpu_cycledown=20
mixer_nosound=
false
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=10
midi_mpu401=intelligent
midi_device=default
midi_config=
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=5
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=
true
sblaster_oplmode=auto
sblaster_oplrate=22050
gus_gus=
false
speaker_pcspeaker=
true
speaker_pcrate=22050
speaker_tandy=auto
speaker_tandyrate=22050
speaker_disney=
true
joystick_joysticktype=auto
joystick_timed=
true
joystick_autofire=
false
joystick_swap34=
false
joystick_buttonwrap=
true
serial_serial1=dummy
serial_serial2=dummy
serial_serial3=disabled
serial_serial4=disabled
dos_xms=
true
dos_ems=
true
dos_umb=
true
dos_keyboardlayout=none
IPX_Enable=1
IPX_Connection=1
IPX_ipx=
true
_EOFCFG_
cat
<<_EOFBAT_ >
"$INSTALLPATH/HOMM1.BAT"
@ECHO OFF
mount
C
"$INSTALLPATH"
imgmount d
"$INSTALLPATH/homm1.gog"
-t iso
c:
cls
IPXNET STARTSERVER
netbios.exe
cls
loadfix -4 heroes.exe
exit
_EOFBAT_
POL_Shortcut
"HOMM1.BAT"
"$SHORTCUT_NAME"
"$SHORTCUT_NAME.png"
""
POL_Shortcut_Document
"$SHORTCUT_NAME"
"$INSTALLPATH/manual.pdf"
POL_Shortcut
"EDITOR.EXE"
"$SHORTCUT_NAME_EDITOR"
POL_SetupWindow_Close
exit