Theme Hospital (Windows)

Informations

Creator Message
Dadu042

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 5467
Wine:

Feedbacks

Description

Business simulation game, 1997 release. Wikipedia.

Source code

#!/usr/bin/env playonlinux-bash
# -*- mode: sh -*-

# Date : (2010-01-19 18-00)
# Last revision : see changelog
# Wine version used : 2.22
# Distribution used to test : Debian 10 Buster x86_64
# Game Version : N/A.
# Author : SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [SuperPlumus] (2011-12-02 20-58)
#   Conversion v3 -> v4
# [Quentin PÂRIS] (2012-04-28 22-39)
#   Using dosbox instead of wine
# [Quentin PÂRIS] (2012-04-28 23-05)
#   Auto-closing dosbox
# [Quentin PÂRIS] (2012-04-29 17-41)
#   Fix CD-ROM Problems
# [Quentin PÂRIS] (2012-08-08 11-02)
#   Check PlayOnLinux version
# [SuperPlumus] (2013-12-08 18-53)
#   Update gettext messages
# [Alexandre BEAUGY] (2019-09-08 08-17)
#   Convert script from DOS game to Windows game.
#   Upgraded wine version
#   Fixed install process
#   Added MIDI playback capability
# [Dadu042] (2020-02-09 11:50)
#   Ask before to patch the game.
#   Improve POL_Shortcut
#   POL_SetupWindow_VMS "256" -> 64
  
 
[ "${PLAYONLINUX}" = "" ] && exit 0
source "${PLAYONLINUX}/lib/sources"
 
AUTHOR="SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY"
EDITOR="Bullfrog Productions, Ltd."
TITLE="Theme Hospital"
PREFIX="ThemeHospital"
WORKING_WINE_VERSION="2.22"
DEFAULT_CDROM="/media/cdrom"
DEFAULT_SETUP="SETUP.EXE"
DEFAULT_PATCH="THPatch.rar"
 
# Initialisation
POL_SetupWindow_Init
POL_Debug_Init
POL_System_SetArch "x86" # Force default value, in case it changes one day...
 
# Presentation
POL_SetupWindow_presentation "${TITLE}" "${EDITOR}" "${GAME_URL}" "${AUTHOR}" "${PREFIX}"
 
# Create prefix
POL_Wine_SelectPrefix "${PREFIX}"
POL_Wine_PrefixCreate "${WORKING_WINE_VERSION}"
 
# Select installer's location: LOCAL or CD 
setup_file="${POL_SELECTED_FILE}"
if [ x${setup_file} = x ] ; then
  POL_SetupWindow_InstallMethod "LOCAL,CD"
  case "$INSTALL_METHOD" in
    "CD" )
      POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "Sorry, $APPLICATION_TITLE 4.0+ is required to install $TITLE from CD-ROM"
      setup_file=${DEFAULT_CDROM}/${DEFAULT_SETUP}
      if [ ! -f ${setup_file} ] ; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "${DEFAULT_SETUP}"
        setup_file="$CDROM_SETUP"
      fi
      ;;
    "LOCAL" )
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      setup_file="$APP_ANSWER"
      ;;
  esac
fi
 
[ "${setup_file}" = "" ] && exit 2
 
# Configuration
Set_OS "win98"
Set_Desktop "On" "640" "480"
 
# Game's initial install
POL_Wine_WaitBefore "${TITLE}"
POL_Wine "${setup_file}"
POL_Wine_WaitExit "${TITLE}"
 
POL_SetupWindow_VMS "64"


################
# Patch update #
################
    
POL_SetupWindow_menu "$(eval_gettext 'Do you have a official patch-update to install ?')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"     
     
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then

# Select (latest) patch to install
POL_SetupWindow_browse "$(eval_gettext 'Please select the (latest) patch file to run')" "${TITLE}" "${DEFAULT_PATCH}"
setup_file="${APP_ANSWER}"

# Game's (latest) patch install
pushd "${WINEPREFIX}/drive_c/Program Files/Bullfrog/"
cp ${setup_file} .
mkdir THPatch
pushd THPatch >/dev/null
unrar x ../THPatch.rar
file_list=( $(find . -type f) )
popd >/dev/null
pushd Hospital >/dev/null
tar cvf ../THUnpatch.tar ${file_list[*]}
popd >/dev/null
cp -arv THPatch/* Hospital/.
rm -rf THPatch
popd >/dev/null

fi

# Create Shortcut
POL_Shortcut "HOSPITAL.EXE" "$TITLE" "" "" "Game;"
 
# Fix shortcut to allow game play MIDI musics
# [source: https://doc.ubuntu-fr.org/tutoriel/wine_et_midi#creation_d_un_script_pour_lancer_un_programme_avec_timidity]
sed -i -e '/source "$PLAYONLINUX/a timidity -iA -B2,8 -Os -EFreverb=0&' "${POL_USER_ROOT}/shortcuts/$TITLE"
echo "killall timidity" >>"${POL_USER_ROOT}/shortcuts/$TITLE"
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 9 February 2020 at 11:54
Dadu042

Information

This update has been approved by the team.

Message

Note: Wine 2.22 will be soon unsupported by Linux distribs. I suggest to test (then switch to) Wine 3.0.3

Differences

@@ -1,6 +1,15 @@
 #!/usr/bin/env playonlinux-bash
 # -*- mode: sh -*-
- 
+
+# Date : (2010-01-19 18-00)
+# Last revision : see changelog
+# Wine version used : 2.22
+# Distribution used to test : Debian 10 Buster x86_64
+# Game Version : N/A.
+# Author : SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY
+# Licence : GPLv3
+# PlayOnLinux: 4.3.4
+#
 # CHANGELOG
 # [SuperPlumus] (2011-12-02 20-58)
 #   Conversion v3 -> v4
@@ -19,15 +28,11 @@
 #   Upgraded wine version
 #   Fixed install process
 #   Added MIDI playback capability
+# [Dadu042] (2020-02-09 11:50)
+#   Ask before to patch the game.
+#   Improve POL_Shortcut
+#   POL_SetupWindow_VMS "256" -> 64
   
-# Date : (2010-01-19 18-00)
-# Last revision : (2019-09-08 08-17)
-# Wine version used : 2.22
-# Distribution used to test : Debian 10 Buster x86_64
-# Game Version : N/A.
-# Author : SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY
-# Licence : GPLv3
-# PlayOnLinux: 4.3.4
  
 [ "${PLAYONLINUX}" = "" ] && exit 0
 source "${PLAYONLINUX}/lib/sources"
@@ -86,12 +91,21 @@
 POL_Wine "${setup_file}"
 POL_Wine_WaitExit "${TITLE}"
  
-POL_SetupWindow_VMS "256"
- 
+POL_SetupWindow_VMS "64"
+
+
+################
+# Patch update #
+################
+    
+POL_SetupWindow_menu "$(eval_gettext 'Do you have a official patch-update to install ?')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"     
+     
+if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
+
 # Select (latest) patch to install
 POL_SetupWindow_browse "$(eval_gettext 'Please select the (latest) patch file to run')" "${TITLE}" "${DEFAULT_PATCH}"
 setup_file="${APP_ANSWER}"
- 
+
 # Game's (latest) patch install
 pushd "${WINEPREFIX}/drive_c/Program Files/Bullfrog/"
 cp ${setup_file} .
@@ -106,9 +120,11 @@
 cp -arv THPatch/* Hospital/.
 rm -rf THPatch
 popd >/dev/null
- 
+
+fi
+
 # Create Shortcut
-POL_Shortcut "HOSPITAL.EXE" "$TITLE"
+POL_Shortcut "HOSPITAL.EXE" "$TITLE" "" "" "Game;"
  
 # Fix shortcut to allow game play MIDI musics
 # [source: https://doc.ubuntu-fr.org/tutoriel/wine_et_midi#creation_d_un_script_pour_lancer_un_programme_avec_timidity]

New source code

#!/usr/bin/env playonlinux-bash
# -*- mode: sh -*-

# Date : (2010-01-19 18-00)
# Last revision : see changelog
# Wine version used : 2.22
# Distribution used to test : Debian 10 Buster x86_64
# Game Version : N/A.
# Author : SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [SuperPlumus] (2011-12-02 20-58)
#   Conversion v3 -> v4
# [Quentin PÂRIS] (2012-04-28 22-39)
#   Using dosbox instead of wine
# [Quentin PÂRIS] (2012-04-28 23-05)
#   Auto-closing dosbox
# [Quentin PÂRIS] (2012-04-29 17-41)
#   Fix CD-ROM Problems
# [Quentin PÂRIS] (2012-08-08 11-02)
#   Check PlayOnLinux version
# [SuperPlumus] (2013-12-08 18-53)
#   Update gettext messages
# [Alexandre BEAUGY] (2019-09-08 08-17)
#   Convert script from DOS game to Windows game.
#   Upgraded wine version
#   Fixed install process
#   Added MIDI playback capability
# [Dadu042] (2020-02-09 11:50)
#   Ask before to patch the game.
#   Improve POL_Shortcut
#   POL_SetupWindow_VMS "256" -> 64
  
 
[ "${PLAYONLINUX}" = "" ] && exit 0
source "${PLAYONLINUX}/lib/sources"
 
AUTHOR="SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY"
EDITOR="Bullfrog Productions, Ltd."
TITLE="Theme Hospital"
PREFIX="ThemeHospital"
WORKING_WINE_VERSION="2.22"
DEFAULT_CDROM="/media/cdrom"
DEFAULT_SETUP="SETUP.EXE"
DEFAULT_PATCH="THPatch.rar"
 
# Initialisation
POL_SetupWindow_Init
POL_Debug_Init
POL_System_SetArch "x86" # Force default value, in case it changes one day...
 
# Presentation
POL_SetupWindow_presentation "${TITLE}" "${EDITOR}" "${GAME_URL}" "${AUTHOR}" "${PREFIX}"
 
# Create prefix
POL_Wine_SelectPrefix "${PREFIX}"
POL_Wine_PrefixCreate "${WORKING_WINE_VERSION}"
 
# Select installer's location: LOCAL or CD 
setup_file="${POL_SELECTED_FILE}"
if [ x${setup_file} = x ] ; then
  POL_SetupWindow_InstallMethod "LOCAL,CD"
  case "$INSTALL_METHOD" in
    "CD" )
      POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "Sorry, $APPLICATION_TITLE 4.0+ is required to install $TITLE from CD-ROM"
      setup_file=${DEFAULT_CDROM}/${DEFAULT_SETUP}
      if [ ! -f ${setup_file} ] ; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "${DEFAULT_SETUP}"
        setup_file="$CDROM_SETUP"
      fi
      ;;
    "LOCAL" )
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      setup_file="$APP_ANSWER"
      ;;
  esac
fi
 
[ "${setup_file}" = "" ] && exit 2
 
# Configuration
Set_OS "win98"
Set_Desktop "On" "640" "480"
 
# Game's initial install
POL_Wine_WaitBefore "${TITLE}"
POL_Wine "${setup_file}"
POL_Wine_WaitExit "${TITLE}"
 
POL_SetupWindow_VMS "64"


################
# Patch update #
################
    
POL_SetupWindow_menu "$(eval_gettext 'Do you have a official patch-update to install ?')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"     
     
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then

# Select (latest) patch to install
POL_SetupWindow_browse "$(eval_gettext 'Please select the (latest) patch file to run')" "${TITLE}" "${DEFAULT_PATCH}"
setup_file="${APP_ANSWER}"

# Game's (latest) patch install
pushd "${WINEPREFIX}/drive_c/Program Files/Bullfrog/"
cp ${setup_file} .
mkdir THPatch
pushd THPatch >/dev/null
unrar x ../THPatch.rar
file_list=( $(find . -type f) )
popd >/dev/null
pushd Hospital >/dev/null
tar cvf ../THUnpatch.tar ${file_list[*]}
popd >/dev/null
cp -arv THPatch/* Hospital/.
rm -rf THPatch
popd >/dev/null

fi

# Create Shortcut
POL_Shortcut "HOSPITAL.EXE" "$TITLE" "" "" "Game;"
 
# Fix shortcut to allow game play MIDI musics
# [source: https://doc.ubuntu-fr.org/tutoriel/wine_et_midi#creation_d_un_script_pour_lancer_un_programme_avec_timidity]
sed -i -e '/source "$PLAYONLINUX/a timidity -iA -B2,8 -Os -EFreverb=0&' "${POL_USER_ROOT}/shortcuts/$TITLE"
echo "killall timidity" >>"${POL_USER_ROOT}/shortcuts/$TITLE"
 
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Thursday 6 February 2020 at 16:02
Dadu042

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Script made by Gargamel, adapted from the DOS script.

 

ChangeLog

  • Added MIDI playback capability
    (require "timidity" GNU/Linux package to be installed)
  • Added capability to install the latest full Theme Hospital patch (THPatch.rar), from both Blustuff and DragonsLover:
    (Require "unrar" GNU/Linux package to be installed)
  • Enhanced install process
  • Upgraded to latest wine-2.x version
    (Because wine-1.x does not work anymore on modern GNU/Linux distributions, due to missing obsolete dependencies)

What works?

  • Nearly everything ;o)

What should be improved?

  • Game runs really fast. Apparently due to old games not designed for multi-core CPU (more info...). As I'm not able to override "wine" launch commandline in POL_Wine, with "taskset -c 1 wine", I'm currently unable to fix that "issue".

Differences

@@ -0,0 +1,119 @@
+#!/usr/bin/env playonlinux-bash
+# -*- mode: sh -*-
+ 
+# CHANGELOG
+# [SuperPlumus] (2011-12-02 20-58)
+#   Conversion v3 -> v4
+# [Quentin PÂRIS] (2012-04-28 22-39)
+#   Using dosbox instead of wine
+# [Quentin PÂRIS] (2012-04-28 23-05)
+#   Auto-closing dosbox
+# [Quentin PÂRIS] (2012-04-29 17-41)
+#   Fix CD-ROM Problems
+# [Quentin PÂRIS] (2012-08-08 11-02)
+#   Check PlayOnLinux version
+# [SuperPlumus] (2013-12-08 18-53)
+#   Update gettext messages
+# [Alexandre BEAUGY] (2019-09-08 08-17)
+#   Convert script from DOS game to Windows game.
+#   Upgraded wine version
+#   Fixed install process
+#   Added MIDI playback capability
+  
+# Date : (2010-01-19 18-00)
+# Last revision : (2019-09-08 08-17)
+# Wine version used : 2.22
+# Distribution used to test : Debian 10 Buster x86_64
+# Game Version : N/A.
+# Author : SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY
+# Licence : GPLv3
+# PlayOnLinux: 4.3.4
+ 
+[ "${PLAYONLINUX}" = "" ] && exit 0
+source "${PLAYONLINUX}/lib/sources"
+ 
+AUTHOR="SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY"
+EDITOR="Bullfrog Productions, Ltd."
+TITLE="Theme Hospital"
+PREFIX="ThemeHospital"
+WORKING_WINE_VERSION="2.22"
+DEFAULT_CDROM="/media/cdrom"
+DEFAULT_SETUP="SETUP.EXE"
+DEFAULT_PATCH="THPatch.rar"
+ 
+# Initialisation
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_System_SetArch "x86" # Force default value, in case it changes one day...
+ 
+# Presentation
+POL_SetupWindow_presentation "${TITLE}" "${EDITOR}" "${GAME_URL}" "${AUTHOR}" "${PREFIX}"
+ 
+# Create prefix
+POL_Wine_SelectPrefix "${PREFIX}"
+POL_Wine_PrefixCreate "${WORKING_WINE_VERSION}"
+ 
+# Select installer's location: LOCAL or CD 
+setup_file="${POL_SELECTED_FILE}"
+if [ x${setup_file} = x ] ; then
+  POL_SetupWindow_InstallMethod "LOCAL,CD"
+  case "$INSTALL_METHOD" in
+    "CD" )
+      POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "Sorry, $APPLICATION_TITLE 4.0+ is required to install $TITLE from CD-ROM"
+      setup_file=${DEFAULT_CDROM}/${DEFAULT_SETUP}
+      if [ ! -f ${setup_file} ] ; then
+        POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "${DEFAULT_SETUP}"
+        setup_file="$CDROM_SETUP"
+      fi
+      ;;
+    "LOCAL" )
+      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+      setup_file="$APP_ANSWER"
+      ;;
+  esac
+fi
+ 
+[ "${setup_file}" = "" ] && exit 2
+ 
+# Configuration
+Set_OS "win98"
+Set_Desktop "On" "640" "480"
+ 
+# Game's initial install
+POL_Wine_WaitBefore "${TITLE}"
+POL_Wine "${setup_file}"
+POL_Wine_WaitExit "${TITLE}"
+ 
+POL_SetupWindow_VMS "256"
+ 
+# Select (latest) patch to install
+POL_SetupWindow_browse "$(eval_gettext 'Please select the (latest) patch file to run')" "${TITLE}" "${DEFAULT_PATCH}"
+setup_file="${APP_ANSWER}"
+ 
+# Game's (latest) patch install
+pushd "${WINEPREFIX}/drive_c/Program Files/Bullfrog/"
+cp ${setup_file} .
+mkdir THPatch
+pushd THPatch >/dev/null
+unrar x ../THPatch.rar
+file_list=( $(find . -type f) )
+popd >/dev/null
+pushd Hospital >/dev/null
+tar cvf ../THUnpatch.tar ${file_list[*]}
+popd >/dev/null
+cp -arv THPatch/* Hospital/.
+rm -rf THPatch
+popd >/dev/null
+ 
+# Create Shortcut
+POL_Shortcut "HOSPITAL.EXE" "$TITLE"
+ 
+# Fix shortcut to allow game play MIDI musics
+# [source: https://doc.ubuntu-fr.org/tutoriel/wine_et_midi#creation_d_un_script_pour_lancer_un_programme_avec_timidity]
+sed -i -e '/source "$PLAYONLINUX/a timidity -iA -B2,8 -Os -EFreverb=0&' "${POL_USER_ROOT}/shortcuts/$TITLE"
+echo "killall timidity" >>"${POL_USER_ROOT}/shortcuts/$TITLE"
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# -*- mode: sh -*-
 
# CHANGELOG
# [SuperPlumus] (2011-12-02 20-58)
#   Conversion v3 -> v4
# [Quentin PÂRIS] (2012-04-28 22-39)
#   Using dosbox instead of wine
# [Quentin PÂRIS] (2012-04-28 23-05)
#   Auto-closing dosbox
# [Quentin PÂRIS] (2012-04-29 17-41)
#   Fix CD-ROM Problems
# [Quentin PÂRIS] (2012-08-08 11-02)
#   Check PlayOnLinux version
# [SuperPlumus] (2013-12-08 18-53)
#   Update gettext messages
# [Alexandre BEAUGY] (2019-09-08 08-17)
#   Convert script from DOS game to Windows game.
#   Upgraded wine version
#   Fixed install process
#   Added MIDI playback capability
  
# Date : (2010-01-19 18-00)
# Last revision : (2019-09-08 08-17)
# Wine version used : 2.22
# Distribution used to test : Debian 10 Buster x86_64
# Game Version : N/A.
# Author : SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY
# Licence : GPLv3
# PlayOnLinux: 4.3.4
 
[ "${PLAYONLINUX}" = "" ] && exit 0
source "${PLAYONLINUX}/lib/sources"
 
AUTHOR="SuperPlumus, Quentin PÂRIS et Alexandre BEAUGY"
EDITOR="Bullfrog Productions, Ltd."
TITLE="Theme Hospital"
PREFIX="ThemeHospital"
WORKING_WINE_VERSION="2.22"
DEFAULT_CDROM="/media/cdrom"
DEFAULT_SETUP="SETUP.EXE"
DEFAULT_PATCH="THPatch.rar"
 
# Initialisation
POL_SetupWindow_Init
POL_Debug_Init
POL_System_SetArch "x86" # Force default value, in case it changes one day...
 
# Presentation
POL_SetupWindow_presentation "${TITLE}" "${EDITOR}" "${GAME_URL}" "${AUTHOR}" "${PREFIX}"
 
# Create prefix
POL_Wine_SelectPrefix "${PREFIX}"
POL_Wine_PrefixCreate "${WORKING_WINE_VERSION}"
 
# Select installer's location: LOCAL or CD 
setup_file="${POL_SELECTED_FILE}"
if [ x${setup_file} = x ] ; then
  POL_SetupWindow_InstallMethod "LOCAL,CD"
  case "$INSTALL_METHOD" in
    "CD" )
      POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "Sorry, $APPLICATION_TITLE 4.0+ is required to install $TITLE from CD-ROM"
      setup_file=${DEFAULT_CDROM}/${DEFAULT_SETUP}
      if [ ! -f ${setup_file} ] ; then
        POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "${DEFAULT_SETUP}"
        setup_file="$CDROM_SETUP"
      fi
      ;;
    "LOCAL" )
      POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
      setup_file="$APP_ANSWER"
      ;;
  esac
fi
 
[ "${setup_file}" = "" ] && exit 2
 
# Configuration
Set_OS "win98"
Set_Desktop "On" "640" "480"
 
# Game's initial install
POL_Wine_WaitBefore "${TITLE}"
POL_Wine "${setup_file}"
POL_Wine_WaitExit "${TITLE}"
 
POL_SetupWindow_VMS "256"
 
# Select (latest) patch to install
POL_SetupWindow_browse "$(eval_gettext 'Please select the (latest) patch file to run')" "${TITLE}" "${DEFAULT_PATCH}"
setup_file="${APP_ANSWER}"
 
# Game's (latest) patch install
pushd "${WINEPREFIX}/drive_c/Program Files/Bullfrog/"
cp ${setup_file} .
mkdir THPatch
pushd THPatch >/dev/null
unrar x ../THPatch.rar
file_list=( $(find . -type f) )
popd >/dev/null
pushd Hospital >/dev/null
tar cvf ../THUnpatch.tar ${file_list[*]}
popd >/dev/null
cp -arv THPatch/* Hospital/.
rm -rf THPatch
popd >/dev/null
 
# Create Shortcut
POL_Shortcut "HOSPITAL.EXE" "$TITLE"
 
# Fix shortcut to allow game play MIDI musics
# [source: https://doc.ubuntu-fr.org/tutoriel/wine_et_midi#creation_d_un_script_pour_lancer_un_programme_avec_timidity]
sed -i -e '/source "$PLAYONLINUX/a timidity -iA -B2,8 -Os -EFreverb=0&' "${POL_USER_ROOT}/shortcuts/$TITLE"
echo "killall timidity" >>"${POL_USER_ROOT}/shortcuts/$TITLE"
 
POL_SetupWindow_Close
exit 0

Replies

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com