POL_Install_dinput

Informations

Creator Mensajes
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 257720
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date : Unknown
# Last revision : (2021-10-18 18:32)
# Author : Tinou
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com
# Used by old games like Rayman 2

if [ "$POL_ARCH" = "amd64" ]; then
    cd "$WINEPREFIX/drive_c/windows/syswow64"
else
    cd "$WINEPREFIX/drive_c/windows/system32"
fi
POL_Call POL_SP2_Extract dinput.dll

# Overriding DLL
POL_Wine_OverrideDLL "native,builtin" "dinput"

Contributions

Filters:

Contribute
Member Mensajes
Yaotl Monday 18 October 2021 at 18:32
Yaotl Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,27 +1,17 @@
 #!/bin/bash
 # Date : Unknown
-# Last revision : (2012-05-16 00:30)
+# Last revision : (2021-10-18 18:32)
 # Author : Tinou
 # Updated by : GNU_Raziel
 # Only For : http://www.playonlinux.com
 # Used by old games like Rayman 2
 
-# Downloading DLL 
-POL_Download_Resource "https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
-
-# Extracting DLL
-cd "$POL_USER_ROOT/ressources"
-mkdir -p dinput
-cabextract -d dinput/ -L -F 'dxnt.cab' directx_Jun2010_redist.exe || POL_Debug_Error "POL_Install_dinput : Failed te extract directx_Jun2010_redist.exe"
-cd dinput
-cabextract dxnt.cab  -L -F 'dinput.dll' || POL_Debug_Error "POL_Install_dinput : Failed to extract dxnt.cab"
-
-# Installing DLL
-if [ "$POL_ARCH" == "amd64" ]; then
-	cp "dinput.dll" "$WINEPREFIX/drive_c/windows/syswow64"
+if [ "$POL_ARCH" = "amd64" ]; then
+    cd "$WINEPREFIX/drive_c/windows/syswow64"
 else
-	cp "dinput.dll" "$WINEPREFIX/drive_c/windows/system32"
+    cd "$WINEPREFIX/drive_c/windows/system32"
 fi
+POL_Call POL_SP2_Extract dinput.dll
 
 # Overriding DLL
 POL_Wine_OverrideDLL "native,builtin" "dinput"
\ No newline at end of file

New source code

#!/bin/bash
# Date : Unknown
# Last revision : (2021-10-18 18:32)
# Author : Tinou
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com
# Used by old games like Rayman 2

if [ "$POL_ARCH" = "amd64" ]; then
    cd "$WINEPREFIX/drive_c/windows/syswow64"
else
    cd "$WINEPREFIX/drive_c/windows/system32"
fi
POL_Call POL_SP2_Extract dinput.dll

# Overriding DLL
POL_Wine_OverrideDLL "native,builtin" "dinput"

Respuestas

Friday 29 October 2021 at 22:57
Script approved.
roy999 Monday 27 September 2021 at 23:27
roy999 Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -7,12 +7,12 @@
 # Used by old games like Rayman 2
 
 # Downloading DLL 
-POL_Download_Resource "http://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe" "4cf007a355cb5f34a3c5c400113b33c3"
+POL_Download_Resource "https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"
 
 # Extracting DLL
 cd "$POL_USER_ROOT/ressources"
 mkdir -p dinput
-cabextract -d dinput/ -L -F 'dxnt.cab' directx_feb2010_redist.exe || POL_Debug_Error "POL_Install_dinput : Failed te extract directx_feb2010_redist.exe"
+cabextract -d dinput/ -L -F 'dxnt.cab' directx_Jun2010_redist.exe || POL_Debug_Error "POL_Install_dinput : Failed te extract directx_Jun2010_redist.exe"
 cd dinput
 cabextract dxnt.cab  -L -F 'dinput.dll' || POL_Debug_Error "POL_Install_dinput : Failed to extract dxnt.cab"
 

New source code

#!/bin/bash
# Date : Unknown
# Last revision : (2012-05-16 00:30)
# Author : Tinou
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com
# Used by old games like Rayman 2

# Downloading DLL 
POL_Download_Resource "https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" "822e4c516600e81dc7fb16d9a77ec6d4"

# Extracting DLL
cd "$POL_USER_ROOT/ressources"
mkdir -p dinput
cabextract -d dinput/ -L -F 'dxnt.cab' directx_Jun2010_redist.exe || POL_Debug_Error "POL_Install_dinput : Failed te extract directx_Jun2010_redist.exe"
cd dinput
cabextract dxnt.cab  -L -F 'dinput.dll' || POL_Debug_Error "POL_Install_dinput : Failed to extract dxnt.cab"

# Installing DLL
if [ "$POL_ARCH" == "amd64" ]; then
        cp "dinput.dll" "$WINEPREFIX/drive_c/windows/syswow64"
else
        cp "dinput.dll" "$WINEPREFIX/drive_c/windows/system32"
fi

# Overriding DLL
POL_Wine_OverrideDLL "native,builtin" "dinput"

Respuestas

Tuesday 28 September 2021 at 11:26
Script approved, thanks.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com