Форум

[Demande d'aide] Delta Force : Emuler un bueau virtuel

Emuler un bureau virtuel

Автор Replies
david Monday 26 October 2009 at 15:20
davidAnonymous

Bonjour à tous, je m'appelle david, j'ai commencé à écrire une dizaine de scripts pour le projet, ils ont été refusés car ils devaient être écrits selon un certain modèle, j'en ai réécrit un pour Delta Force, j'arrive à assigner une version de wine mais pas à faire émuler un bureau en 800*600, voici mon script, si vous avez des remaques n'hésitez pas.

Merci à tous

david.

#!/bin/bash
# This is a PlayOnLinux script for Delta Force
#
# Written by:  david
#       Date:  October, 2009
#   Revision:  0.1
#
#

if [ "$PLAYONLINUX" = "" ]then
exit 0
fi

source "$PLAYONLINUX/lib/sources"

patch()
{
cd $HOME
POL_SetupWindow_browse "Please select the patch file" "Patch selection" ""
wine "$APP_ANSWER"
}
 
cfg_check
 
POL_SetupWindow_Init
POL_SetupWindow_presentation "Delta Force" "NovaLogic" "http://www.novalogic.com/" "david" "DeltaForce"
 
	select_prefixe "$REPERTOIRE/wineprefix/DeltaForce"
	POL_SetupWindow_prefixcreate 
 	
	POL_SetupWindow_install_wine "1.1.6"
	Set_GLSL "On"
	Set_OS "win98"
	Set_DXGrab "On"	
 
	POL_SetupWindow_cdrom
 	POL_SetupWindow_check_cdrom "dfsetup/setup.exe"
	
 	POL_SetupWindow_wait_next_signal "Installation in progress..." "Delta Force"
	wine $CDROM/dfsetup/setup.exe
	sleep 10
	POL_SetupWindow_detect_exit
	
	POL_SetupWindow_make_shortcut "DeltaForce" "Program Files/NovaLogic/Delta Force" "Df.exe" "" "Delta Force"
	
	Set_WineVersion_Assign "1.1.6" "Delta Force"	


	POL_SetupWindow_menu "How do you want to run the game?" "Windowed or Full Screen" "Full Screen/Windowed (Recommended to avoid display resolution problems)" "/"

	if [ "$APP_ANSWER" = "Windowed (Recommended to avoid display resolution problems)"]; then
	Set_Desktop "On" "800" "600"
	elif [ "$APP_ANSWER" = "Full Screen"]; then
	Set_Desktop "Off"
	fi
 
	POL_SetupWindow_question "Do you have a post-installation patch you'd like to install?" "Post-installation patch"
	if [ "$APP_ANSWER" = "TRUE" ]; then
	patch
	fi
 
	POL_SetupWindow_reboot
 
POL_SetupWindow_Close
exit


Edited by NSLW


Pour que jouer sous linux ne soit plus un calvère...
david Saturday 31 October 2009 at 19:31
davidAnonymous

up

Pour que jouer sous linux ne soit plus un calvère...