@@ -20,47 +20,47 @@
# New attempts but texts are still not displayed.
#
# KNOWN ISSUES
-# - Wine amd64 3.0.5, 4.0.1, 4.11, 4.15: none texts displayed (same in 32 and 64bits. I tried to install many POL functions: corefonts, tahoma, tahoma2, gdiplus, mono210, ...
-# - Wine x86 4.18: same as above.
-# - Wine amd64 3.0.5, 4.0.1: wrong display (desktop is break visually) as soon as launched. Fix: virtual desktop window (800x600).
-
-
+# - Wine amd64 3.0.5, 4.0.1, 4.11, 4.15: none texts displayed (same in 32 and 64bits. I tried to install many POL functions: corefonts, tahoma, tahoma2, gdiplus, mono210, ...
+# - Wine x86 4.18: same as above.
+# - Wine amd64 3.0.5, 4.0.1: wrong display (desktop is break visually) as soon as launched. Fix: virtual desktop window (800x600).
+
+
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-
+
TITLE="Hospital Manager"
PREFIX="hospital-manager"
-WORKING_WINE_VERSION="4.0.1"
+WORKING_WINE_VERSION="4.0.3"
AUTHOR="Dadu042"
EDITOR="Microids Indie"
-
+
POL_SetupWindow_Init
POL_Debug_Init
-
+
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
-
+
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-# POL_Wine_PrefixCreate
+# POL_Wine_PrefixCreate
POL_System_TmpCreate "$TITLE"
-
+
Set_OS "win7"
-
+
# Useless
-# POL_Call POL_Install_mfc42
-# POL_Call POL_Install_msxml4
-
+# POL_Call POL_Install_mfc42
+# POL_Call POL_Install_msxml4
+
# Useless ?
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3compiler_43
-
-# This game was not released on CD/DVD.
-POL_SetupWindow_InstallMethod "LOCAL,STEAM"
+# This game was not released on CD/DVD.
+POL_SetupWindow_InstallMethod "LOCAL,STEAM"
+
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the ZIP file')" "$TITLE"
@@ -68,60 +68,60 @@
# POL_Wine start /unix "$SETUP_EXE"
# POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
-
+
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Extracting the archive...')" "$TITLE"
POL_System_unzip "$APP_ANSWER" -d "$WINEPREFIX/drive_c/"
-
+
elif [ "$INSTALL_METHOD" == "STEAM" ];then
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine_WaitBefore "$TITLE"
else
- POL_SetupWindow_message "Warning: the installation from CDs might fail when CD #2 inserted.\n\n Workaround: copy the CDs #2,3 into a folder of your HDD, the last to copy is the #1. Then you will have to make the installation from LOCAL." "$TITLE"
+ POL_SetupWindow_message "Warning: the installation from CDs might fail when CD #2 inserted.\n\n Workaround: copy the CDs #2,3 into a folder of your HDD, the last to copy is the #1. Then you will have to make the installation from LOCAL." "$TITLE"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "pidgen.dll"
POL_Wine start /unix "$CDROM/install.exe"
POL_Wine_WaitExit "install.exe"
cd "$POL_System_TmpDir"
fi
-
-
+
+
if [ "$INSTALL_METHOD" == "STEAM" ]; then
else
POL_Shortcut "Hospital Manager.exe" "$TITLE" "" "Game;StrategyGame;"
POL_Shortcut_Document "$TITLE" "readme.txt"
fi
-
+
################
# Patch update #
################
-
-# POL_SetupWindow_menu "$(eval_gettext 'Install a official patch-update ? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
-
+
+# POL_SetupWindow_menu "$(eval_gettext 'Install a official patch-update ? (to download by yourself).')" "$TITLE" "$(eval_gettext 'Yes')~$(eval_gettext 'No')" "~"
+
if [ "$APP_ANSWER" == "$(eval_gettext 'Yes')" ]; then
POL_SetupWindow_browse "$(eval_gettext 'Please select the .EXE file to run')" "$TITLE"
PATCH_EXE="$APP_ANSWER"
POL_Wine start /unix "$PATCH_EXE"
POL_Wine_WaitExit "$PATCH_EXE"
fi
-
+
#######################################
# Create a 'virtual desktop' (window) #
#######################################
-
+
POL_SetupWindow_menu_list "$(eval_gettext "Choose the game resolution")" "$TITLE" "800x600-1152x864-1024x768-1280x720-1280x800-1280x900-1280x1024-1360x768-1440x900-1400x1050-1600x900-1600x1024-1680x1050-1920x1080" "-" "800x600"
-
+
resolution="$APP_ANSWER"
WIDTH="$(echo $resolution | cut -d"x" -f1)"
HEIGHT="$(echo $resolution | cut -d"x" -f2)"
-
+
Set_Desktop "On" "$WIDTH" "$HEIGHT"
-
+
Set_WineWindowTitle "$TITLE"
-
-
+
+
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0
\ No newline at end of file