Permalink
Browse files

Added script for Duke Nukem 3D Atomic Edition

  • Loading branch information...
Pierre Etchemaite
Pierre Etchemaite committed Jul 30, 2012
1 parent b749fc6 commit 79e1b1ccc932e9d068579daf41eac32ff955ac26
@@ -0,0 +1,66 @@
+#!/bin/bash
+# Date : (2012-07-30 17-03)
+# Last revision : (2012-07-30 17-21)
+# Wine version used : 1.4-dos_support_0.5
+# Distribution used to test : Debian Sid (Unstable)
+# Author : Pierre Etchemaite pe-pol@concept-micro.com
+# Script licence : GPL v.2
+# Program licence : Retail
+# Depend :
+
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+GOGID="duke_nukem_3d_atomic_edition"
+PREFIX="DukeNukem3DAE_gog"
+WORKING_WINE_VERSION="1.4-dos_support_0.5"
+
+TITLE="Duke Nukem 3D Atomic Edition (GoG release)"
+SHORTCUT_NAME="Duke Nukem 3D Atomic Edition"
+
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "3D Realms Entertainment / Apogee Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
+
+POL_Call POL_GoG_setup "$GOGID" "87c7e1946290f3d104db17ca60dbdd48"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+# Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
+POL_Call POL_Function_SetNativeExtension "pdf"
+
+POL_Wine_WaitBefore "$TITLE"
+
+POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
+
+cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
+dosbox_memsize=16
+cpu_core=auto
+cpu_cycles=max
+mixer_rate=22050
+mixer_blocksize=2048
+mixer_prebuffer=10
+sblaster_sbtype=sb16
+sblaster_sbbase=220
+sblaster_irq=5
+sblaster_dma=1
+sblaster_hdma=5
+sblaster_mixer=true
+sblaster_oplmode=auto
+sblaster_oplrate=22050
+ipx_Enable=1
+ipx_Connection=1
+ipx_ipx=true
+_EOFCFG_
+[ "$POL_OS" = "Linux" ] && echo "render_scaler=hq2x" >> "$WINEPREFIX/playonlinux_dos.cfg"
+
+POL_Shortcut "DUKE3D.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" ""
+POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Duke Nukem 3D/manual.pdf"
+
+POL_SetupWindow_Close
+
+exit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79e1b1c

Please sign in to comment.