Call Of Duty: World At War

Informations

Creator Message
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 26865
Wine: 1.8-rc4-staging

Feedbacks

Description

Call Of Duty: World At War

Source code

#!/bin/bash
# Date : (2015-12-16 18-47)
# Wine version used : 1.8-rc4-staging
# Distribution used to test : Mac OS
# Author : Quentin PÂRIS
# Licence : Retail

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Call Of Duty: World At War"
PREFIX="CallOfDuty_WorldAtWar"
WORKING_WINE_VERSION="1.8-rc4-staging"
STEAM_ID="10090"
POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "Activision" "" "Quentin PÂRIS" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

#fetching PROGRAMFILES environmental variable
POL_LoadVar_PROGRAMFILES

POL_Install_xaudio

POL_SetupWindow_InstallMethod "STEAM"

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
fi

POL_Wine_VMS


if [ "$INSTALL_METHOD" == "STEAM" ]; then
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
fi

cd "$WINEPREFIX/drive_c" 
cat << EOF > audio.reg 
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{fac23f48-31f5-45a8-b49b-5225d61401aa}]
@="\"XAudio2\"
\n"

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{fac23f48-31f5-45a8-b49b-5225d61401aa}\InProcServer32]
@="C:\\\\WINDOWS\\\\system32\\\\XAudio2_0.dll"
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{6f6ea3a9-2cf5-41cf-91c1-2170b1540063}]
@="AudioReverb"

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{6f6ea3a9-2cf5-41cf-91c1-2170b1540063}\InProcServer32]
@="C:\\\\WINDOWS\\\\system32\\\\XAudio2_0.dll"
"ThreadingModel"="Both"
EOF 

POL_Wine regedit audio.reg

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Quentin PÂRIS Wednesday 16 December 2015 at 21:33
Quentin PÂRIS
Admin

Information

This update has been approved by the team.

Differences

@@ -0,0 +1,66 @@
+#!/bin/bash
+# Date : (2015-12-16 18-47)
+# Wine version used : 1.8-rc4-staging
+# Distribution used to test : Mac OS
+# Author : Quentin PÂRIS
+# Licence : Retail
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Call Of Duty: World At War"
+PREFIX="CallOfDuty_WorldAtWar"
+WORKING_WINE_VERSION="1.8-rc4-staging"
+STEAM_ID="10090"
+POL_SetupWindow_Init
+
+POL_SetupWindow_presentation "$TITLE" "Activision" "" "Quentin PÂRIS" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+#fetching PROGRAMFILES environmental variable
+POL_LoadVar_PROGRAMFILES
+
+POL_Install_xaudio
+
+POL_SetupWindow_InstallMethod "STEAM"
+
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+	POL_Call POL_Install_steam
+	POL_Call POL_Install_steam_flags "$STEAM_ID"
+	POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
+fi
+
+POL_Wine_VMS
+
+
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+	cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+	POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
+fi
+
+cd "$WINEPREFIX/drive_c" 
+cat << EOF > audio.reg 
+REGEDIT4
+
+[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{fac23f48-31f5-45a8-b49b-5225d61401aa}]
+@="\"XAudio2\"
+\n"
+
+[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{fac23f48-31f5-45a8-b49b-5225d61401aa}\InProcServer32]
+@="C:\\\\WINDOWS\\\\system32\\\\XAudio2_0.dll"
+"ThreadingModel"="Both"
+
+[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{6f6ea3a9-2cf5-41cf-91c1-2170b1540063}]
+@="AudioReverb"
+
+[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{6f6ea3a9-2cf5-41cf-91c1-2170b1540063}\InProcServer32]
+@="C:\\\\WINDOWS\\\\system32\\\\XAudio2_0.dll"
+"ThreadingModel"="Both"
+EOF 
+
+POL_Wine regedit audio.reg
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-12-16 18-47)
# Wine version used : 1.8-rc4-staging
# Distribution used to test : Mac OS
# Author : Quentin PÂRIS
# Licence : Retail

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Call Of Duty: World At War"
PREFIX="CallOfDuty_WorldAtWar"
WORKING_WINE_VERSION="1.8-rc4-staging"
STEAM_ID="10090"
POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "Activision" "" "Quentin PÂRIS" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

#fetching PROGRAMFILES environmental variable
POL_LoadVar_PROGRAMFILES

POL_Install_xaudio

POL_SetupWindow_InstallMethod "STEAM"

if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Call POL_Install_steam
        POL_Call POL_Install_steam_flags "$STEAM_ID"
        POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
fi

POL_Wine_VMS


if [ "$INSTALL_METHOD" == "STEAM" ]; then
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
fi

cd "$WINEPREFIX/drive_c" 
cat << EOF > audio.reg 
REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{fac23f48-31f5-45a8-b49b-5225d61401aa}]
@="\"XAudio2\"
\n"

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{fac23f48-31f5-45a8-b49b-5225d61401aa}\InProcServer32]
@="C:\\\\WINDOWS\\\\system32\\\\XAudio2_0.dll"
"ThreadingModel"="Both"

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{6f6ea3a9-2cf5-41cf-91c1-2170b1540063}]
@="AudioReverb"

[HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{6f6ea3a9-2cf5-41cf-91c1-2170b1540063}\InProcServer32]
@="C:\\\\WINDOWS\\\\system32\\\\XAudio2_0.dll"
"ThreadingModel"="Both"
EOF 

POL_Wine regedit audio.reg

POL_SetupWindow_Close
exit

Replies

Edited by Tinou