POL_Install_d3dx9_47

Informations

Creator Message
Dadu042
Moderator

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 5743
Wine: System

Feedbacks

Description

'Compile HLSL code or an effect file into bytecode for a given target.'

Install only d3dx9_47.dll from DirectX9 DLLs.

Source code

#!/bin/bash
# Last revision : (2020-07-18 20:00)
# Creator: Dadu042
#  based on POL_Install_d3dx9 by Berillions/GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
 
# Extracting & Installing Dx9 dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"
 
install_dx_dlls () {
    local CABPATTERN="$1"
    local TARGET="$2"
    local PATTERN="$3"
    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
 
    mkdir "$TMPDLL"
    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
     
    for x in "$TMPDLL/"*.cab; do
        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
    done
    rm -rf "$TMPDLL"
}
 
if [ "$POL_ARCH" = "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        install_dx_dlls '*d3dx9*47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dx9_47.dll'
        install_dx_dlls '*d3dx9*47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dx9_47.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dx9*47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dx9_47.dll'
fi
 
# Overriding dlls
POL_Debug_Message "Overriding d3dx9_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dx9_47"

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 18 July 2020 at 20:30
Dadu042
Moderator

Information

This update has been approved by the team.

Differences

@@ -0,0 +1,40 @@
+#!/bin/bash
+# Last revision : (2020-07-18 20:00)
+# Creator: Dadu042
+#  based on POL_Install_d3dx9 by Berillions/GNU_Raziel
+# Only For : http://www.playonlinux.com
+ 
+# Downloading directx runtime
+POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
+ 
+# Extracting & Installing Dx9 dlls
+POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
+cd "$POL_USER_ROOT/ressources"
+ 
+install_dx_dlls () {
+    local CABPATTERN="$1"
+    local TARGET="$2"
+    local PATTERN="$3"
+    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
+ 
+    mkdir "$TMPDLL"
+    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
+     
+    for x in "$TMPDLL/"*.cab; do
+        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
+    done
+    rm -rf "$TMPDLL"
+}
+ 
+if [ "$POL_ARCH" = "amd64" ]; then
+        POL_Debug_Message "Extracting x86 and x64 dlls"
+        install_dx_dlls '*d3dx9*47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dx9_47.dll'
+        install_dx_dlls '*d3dx9*47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dx9_47.dll'
+else
+        POL_Debug_Message "Extracting only x86 dll"
+        install_dx_dlls '*d3dx9*47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dx9_47.dll'
+fi
+ 
+# Overriding dlls
+POL_Debug_Message "Overriding d3dx9_47 dll"
+POL_Wine_OverrideDLL "native, builtin" "d3dx9_47"
\ No newline at end of file

New source code

#!/bin/bash
# Last revision : (2020-07-18 20:00)
# Creator: Dadu042
#  based on POL_Install_d3dx9 by Berillions/GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Downloading directx runtime
POL_Download_Resource "http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "7c1fc2021cf57fed3c25c9b03cd0c31a"
 
# Extracting & Installing Dx9 dlls
POL_SetupWindow_wait_next_signal "$(eval_gettext 'Installing DirectX 9 dlls...')" "$TITLE"
cd "$POL_USER_ROOT/ressources"
 
install_dx_dlls () {
    local CABPATTERN="$1"
    local TARGET="$2"
    local PATTERN="$3"
    local TMPDLL="$POL_USER_ROOT/tmp/Install_d3dx9"
 
    mkdir "$TMPDLL"
    cabextract -d "$TMPDLL/" -L -F "$CABPATTERN" directx_Jun2010_redist.exe
     
    for x in "$TMPDLL/"*.cab; do
        cabextract -d "$TARGET/" -L -F "$PATTERN" "$x"
    done
    rm -rf "$TMPDLL"
}
 
if [ "$POL_ARCH" = "amd64" ]; then
        POL_Debug_Message "Extracting x86 and x64 dlls"
        install_dx_dlls '*d3dx9*47_x64.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dx9_47.dll'
        install_dx_dlls '*d3dx9*47_x86.cab' "$WINEPREFIX/drive_c/windows/syswow64" 'd3dx9_47.dll'
else
        POL_Debug_Message "Extracting only x86 dll"
        install_dx_dlls '*d3dx9*47_x86.cab' "$WINEPREFIX/drive_c/windows/system32" 'd3dx9_47.dll'
fi
 
# Overriding dlls
POL_Debug_Message "Overriding d3dx9_47 dll"
POL_Wine_OverrideDLL "native, builtin" "d3dx9_47"

Replies