POL_Install_dinput

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 258867
Wine: System

Retours d'expérience

Code source

#!/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:

Contribuer
Membre Messages
Yaotl Lundi 18 Octobre 2021 à 18:32
Yaotl Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

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

Nouveau code source

#!/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"

Réponses

Vendredi 29 Octobre 2021 à 22:57
Script approved.
roy999 Lundi 27 September 2021 à 23:27
roy999 Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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"
 

Nouveau code source

#!/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"

Réponses

Mardi 28 September 2021 à 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