@@ -1,76 +1,99 @@
#!/bin/bash
-# Date : (2013-03-16 21:00)
-# Last revision : (2013-03-16 21:00)
-# Wine version used : 1.5.7
-# Distribution used to test : Linux Mint 12 x64
-# Author : rcmn
-# Licence : Retail
-
-[ "$PLAYONLINUX" = "" ] && exit 0
+# Date : (2019-08-03)
+# Last revision : see changelog
+# Wine version used : see below
+# Distribution used to test : XUbuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : Retail
+# Playonlinux v4.3.4
+#
+# Tested version : v2.0.0.1 (2015) from GOG.com
+#
+# Game based on (ie: middlewares): .
+#
+#
+# CHANGELOG:
+# [Dadu042] (2019-08-03 20:28)
+# First script.
+# [Dadu042] (2019-08-14)
+# Littles improvements.
+#
+# KNOWN ISSUES:
+# - When installing locally (GOG installer): 'Run Error' (x 4), but it seems to install fine.
+
+
+
+[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-
-TITLE="Little Inferno Steam"
-PREFIX="LittleInfernoSteam"
-EDITOR="Tomorrow Corporation"
-AUTHOR="capcavern"
-WORKING_WINE_VERSION="1.5.26"
-GAME_VMS="512"
-
-# Starting the script
+
+TITLE="Little Inferno"
+PREFIX="little_inferno"
+WORKING_WINE_VERSION="3.0.3"
+AUTHOR="Dadu042"
+EDITOR=""
+
POL_SetupWindow_Init
-
-# Starting debugging API
POL_Debug_Init
-
+
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
-# Setting prefix path
+
+POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
POL_Wine_SelectPrefix "$PREFIX"
-
-# Downloading wine if necessary and creating prefix
-POL_System_SetArch "auto"
+POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
-# Choose between Digital Download version
-POL_SetupWindow_InstallMethod "STEAM"
-
-# Installing mandatory dependencies
-POL_Call POL_Install_steam
-POL_Call POL_Install_dxfullsetup
-
-# Mandatory pre-install fix for steam
-STEAM_ID="221260"
-POL_Call POL_Install_steam_flags "$STEAM_ID"
-
-# Asking about memory size of graphic card
-POL_SetupWindow_VMS $GAME_VMS
-
-# Set Graphic Card information keys for wine
-POL_Wine_SetVideoDriver
-
-## Fix for this game
-# Sound problem fix - pulseaudio related
-[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
-[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
-## End Fix
-
+# POL_Wine_PrefixCreate
+POL_System_TmpCreate "$TITLE"
+
+Set_OS "win7"
+
+# POL_Call POL_Install_corefonts
+
## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
-## End Section ##
-
-# Making shortcut
-
-# Begin game installation
-if [ "$INSTALL_METHOD" == "STEAM" ]; then
- POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue')" "$TITLE"
- cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+# End Section ##
+
+# This web game was not released on CD/DVD.
+# POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD"
+POL_SetupWindow_InstallMethod "LOCAL,STEAM"
+
+if [ "$INSTALL_METHOD" == "LOCAL" ]; then
+
+ cd "$HOME"
+ POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
+ SETUP_EXE="$APP_ANSWER"
+
+# POL_SetupWindow_message "We recommend to uncheck all checkboxes (ie: about DirectX, VC++ ..." "$TITLE"
+
+ POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
+
+elif [ "$INSTALL_METHOD" == "STEAM" ];then
+ POL_Call POL_Install_steam
+ cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+ POL_Wine_WaitBefore "$TITLE"
+
+elif [ "$INSTALL_METHOD" == "CD" ];then
+ POL_SetupWindow_cdrom
+ POL_SetupWindow_check_cdrom ""
+ 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 "Little Inferno.exe" "$TITLE" "" "" "Game;ActionGame;"
+ POL_Shortcut_Document "$TITLE" "readme.html"
fi
-
+
+# GPU selection. Useful when there is 2 GPU on the same computer (ie: Intel HD + Nvidia).
+POL_Call POL_Install_VideoDriver
+
+POL_System_TmpDelete
POL_SetupWindow_Close
exit 0
\ No newline at end of file